Revert Deployment to Previous Version in Kubernetes
How to Roll Back to a Previous Deployment Version in Kubernetes

Infosec Poet and CAP-certified DevOps/SecOps Engineer, passionate about security, creativity, and continuous learning.
Tasks
- Rollback the deployment named
nginx-deploymentto 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.16now.Out of the box, chill method with
404 error;
#k8s #revert #happylearning





