Rollouts and Rollbacks
Upgradation or rollback to a particular version is possible with running deployments.
Use this example file to understand the commands associated with rollouts and rollbacks.
Rollouts
$ kubectl create -f helloworld-black.yaml --record==true$ minikube service navbar-service$ kubectl set image deployment/navbar-deployment helloworld=karthequian/helloworld:blue$ kubectl rollout history deployments/navbar-deployment Rollbacks
$ kubectl rollout undo deployment/navbar-deployment$ kubectl rollout undo deployment/navbar-deployment —to-revision=<number>Last updated
Was this helpful?