kubectl rollout status
does not print actual deployment status
#31130
Labels
kubectl rollout status
does not print actual deployment status
#31130
Kubernetes version (use
kubectl version
):Environment:
What happened:
I only need one replica for my application, but I also want to have zero downtime deployment. I have written following spec:
Deployment works as expected:
Whenever I execute
kubectl rollout status deployment/xxx
it always printsdeployment xxxx successfully rolled out
. I've even executed this command in loop, triggered deployment and saw that value never changed.What you expected to happen:
kubectl rollout status deployment/xxx
should work as documentation states: print changes and wait until rollout is completed.How to reproduce it (as minimally and precisely as possible):
Create deployment with spec like above.
Anything else do we need to know:
Maybe I don't understand this well. When is rollout considered successful in my case? I would think that the moment new pod changes into ready status.
I've also followed docs about deployment status and printed in loop all variables checked by
rollout status
with command:And indeed conditions are true during whole rollout.
The reason I need
rollout status
is because I want to send notification about completed deployment. If there is better way to do this please correct me.The text was updated successfully, but these errors were encountered: