k8s-deployment滚动升级
修改deployment yaml文件的镜像版本
1.kubectl set image deploy nginx nginx=nginx:1.14.2 --record #非交互
2.kubectl edit deploy nginx #交互式更改
更新本地yaml
1.kubectl apply -f nginx-deploy.yaml
2.kubectl replace -f nginx-deploy.yaml
持续监听查看滚动升级状态
kubectl rollout status deploy nginx
日志查看
kubectl describe deploy nginx