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

相关文章:

  • 2021-06-13
  • 2021-06-03
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-19
  • 2022-01-26
  • 2021-10-07
  • 2021-11-30
  • 2021-12-21
  • 2022-02-02
相关资源
相似解决方案