k8s學習筆記之pod縮/擴容

1,手動縮/擴容 如下: nginx01目前是兩個pod副本數 執行縮容kubectl scale deployment nginx01 --replicas=1 副本數已經縮減爲1 擴容同理 2,自動縮/擴容 1,首相針對nginx01定義一個hpa控制器 kubectl autoscale deployment nginx01 --max=3 --cpu-percent=5 --min=2 -
相關文章
相關標籤/搜索