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