<p>when I run <code>kubectl get deploy/my-deploy -o yaml &gt; my-deployment.yaml</code> and modify only the container image tag, and run <code>kubectl apply</code> with the fixed file, is there a command that I can check whether the configured deployment is ready or not?</p>
<p>When I create a new deployment by changing both the image tag AND the deployment name, I check the new deployment’s readiness by checking the <code>.status.conditions[]</code> and selecting the <code>reason MinimumReplicasAvailable</code>. However this is not possible in the case above because the MinimumReplicasAvailable already meets (As the original one before modifying the image tag is already alive).</p>
<p>Any helps or suggestions ?</p>

Piljae Chae
<p>The field that indicates how many pods are updated is the <code>status.updatedReplicas</code>.</p>
<p>According to the <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#deploymentstatus-v1-apps" rel="nofollow noreferrer">documentation</a>, this is the meaning of that field:</p>
<blockquote>
<p>Total number of non-terminated pods targeted by this deployment that
have the desired template spec.</p>
</blockquote>
<p>This means you should be able to tell when a Deployment rollout is complete by comparing <code>spec.Replicas</code> with <code>status.updatedReplicas</code>. When they match the rollout is complete.</p>
