%title缩略图

1、创建

kubectl create deployment web –image=nginx:1.14

2、发布

kubectl expose deployment web –port=80 –type=NodePort –target-port=80 –name=web

kubectl get service

3、升级

kubectl set image deployment web nginx=nginx:1.15

%title插图%num

查看升级状态

kubectl rollout status deployment/nginx-deployment

4、回滚

kubectl rollout history deployment/web

kubectl rollout undo deployment/web

kubectl rollout undo deployment/web –revision=2

5、删除

kubectl delete deploy/web

kubectl delete svc/web

作者 匿名

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

3 × 1 =