With kubectl rollout status deployment deployment-name, you can check the rollout status of a Kubernetes Deployment deployment-name. If the rollout completes successfully, kubectl rollout status returns a zero exit code otherwise a non-zero exit code is returned.
Assuming, we have a Deployment name app with three replicas and we updated the Deployment with a new image.
Running the kubectl rollout...