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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章