Rolling Update

1.Deployment 생성

kubectl create deployment nginx-app --image=nginx:1.11.10-alpine --replicas=3 --dry-run=client -o yaml
kubectl create deployment nginx-app --image=nginx:1.11.10-alpine --replicas=3
kubectl get deployments.apps nginx-app
kubectl get pods | grep nginx-app


2.Rolling Update

kubectl set image deployment nginx-app nginx=nginx:1.11.13-alpine --record
kubectl rollout status deployment nginx-app
kubectl get pods | grep nginx-app

kubectl rollout history  deployment nginx-app


3.Roll Back

kubectl rollout undo deployment nginx-app
kubectl get pods | grep nginx-app

kubectl rollout history deployment nginx-app


출처

https://youtu.be/we7WjMtUEd8