How do you roll back, pause and resume a rollout?
IntermediateProductionRapid-Fire Commands
Answer
kubectl rollout pause deploy/web
kubectl set image deploy/web web=nginx:1.27.2
kubectl rollout resume deploy/web
kubectl rollout undo deploy/web
kubectl rollout history deploy/web --revision=2
More on Rapid-Fire Commands
How do you list all Pods across namespaces with node and IP?BeginnerHow do you find why a Pod is Pending or not starting?BeginnerHow do you scale a Deployment or StatefulSet imperatively?BeginnerHow do you get a shell into a running container and run a one-off Pod?BeginnerHow do you see all resources and their short names?BeginnerHow do you generate YAML for a resource without creating it?Beginner