Revert Deployment to Previous Version in Kubernetes
How to Roll Back to a Previous Deployment Version in Kubernetes
Tasks
- Rollback the deployment named
nginx-deployment
to the previous revision.
Steps
Check the existing deployments
kubectl get deployments
Roll Back the Deployment
kubectl rollout undo deployment/nginx-deployment
Now verfify with status
kubectl rollout status deployment/nginx-deployment
List pods
kubectl get pods
Confirm the image version
kubectl describe deployment nginx-deployment
You can see image version is
nginx:1.16
now.Out of the box, chill method with
404 error
;#k8s #revert #happylearning