k8s/StudyNotes/ Rollout & Versioning
kubectl rollout status deployment/myapp-deployment
kubectl rollout history deployment/myapp-deployment
- Rolling Updates and Rollbacks
- Strategy's
- Recreate (Scale down to 0, then backup up)
- Rolling Updates (Default)
- Strategy's
- Update and apply -f deployment creates new rollout.
the deployment creates a new Replica Set - 2
kubectl apply -f deployment kubectl set deployment --image
roll back with
kubectl rollout undo deployment/myapp-deployment