02 动手实验 创建&更新&扩容&删除Deployment

1. 创建nginx deployment

minikube kubectl -- apply  -f  https://k8s.io/examples/application/deployment.yaml

minikube kubectl describe deployment nginx-deployment

2.更新nginx deployment

#nginx 版本升级 from 1.4.2 到1.16.1
minikube kubectl -- apply  -f  https://k8s.io/examples/application/deployment-update.yaml
minikube kubectl describe deployment nginx-deployment

3.扩容nginx deployment

#副本数从2 到 4
minikube kubectl -- apply  -f  https://k8s.io/examples/application/deployment-scale.yaml
minikube kubectl describe deployment nginx-deployment

4.删除ginx deployment

minikube kubectl delete deployment nginx-deployment
minikube kubectl get deployment
posted @ 2021-02-20 19:48  zendwang  阅读(117)  评论(0编辑  收藏  举报