diff --git a/app/react/kubernetes/applications/components/ReplicationFormSection/ReplicationFormSection.tsx b/app/react/kubernetes/applications/components/ReplicationFormSection/ReplicationFormSection.tsx index c7ee59946..fd20bf523 100644 --- a/app/react/kubernetes/applications/components/ReplicationFormSection/ReplicationFormSection.tsx +++ b/app/react/kubernetes/applications/components/ReplicationFormSection/ReplicationFormSection.tsx @@ -34,12 +34,12 @@ export function ReplicationFormSection({ - onChange({ replicaCount: e.target.valueAsNumber || 1 }) + onChange({ replicaCount: e.target.valueAsNumber || 0 }) } className="w-1/4" data-cy="k8sAppCreate-replicaCountInput" diff --git a/app/react/kubernetes/applications/components/ReplicationFormSection/replicationValidation.ts b/app/react/kubernetes/applications/components/ReplicationFormSection/replicationValidation.ts index 9dcbadcab..8a24a62a8 100644 --- a/app/react/kubernetes/applications/components/ReplicationFormSection/replicationValidation.ts +++ b/app/react/kubernetes/applications/components/ReplicationFormSection/replicationValidation.ts @@ -20,7 +20,7 @@ export function replicationValidation( } = validationData || {}; return object({ replicaCount: number() - .min(1, 'Instance count must be greater than 0.') + .min(0, 'Instance count must be greater than or equal to 0.') .test( 'overflow', 'This application would exceed available resources. Please review resource reservations or the instance count.',