官术网_书友最值得收藏!

Scaling nodes with the cluster autoscaler

For automatic resizing of your clusters based on nodes, you need to use something known as the cluster autoscaler. This will periodically check and optimize the size of your cluster, either increasing or reducing the number of instances. Let's say that your container cluster is larger than it needs to be and there are nodes that do not have any pods scheduled, those nodes will be deleted by the cluster autoscaler. On the other hand, if your cluster container is too small and if you have pods that are facing inordinate delays before they are run, the cluster autoscaler will add nodes and scale up your cluster:

gcloud container clusters create [CLUSTER-NAME] --num-nodes=5 \
--enable-autoscaling --min-nodes=3 --max-nodes=10 [--zone=[ZONE] \ --project=[PROJECT-ID]]

Notice how the scaling of nodes is carried out using gcloud (not kubectl).

主站蜘蛛池模板: 马鞍山市| 许昌县| 泰州市| 屏东市| 垫江县| 弋阳县| 深泽县| 治多县| 夏津县| 东辽县| 阿城市| 孟连| 桃源县| 林口县| 会宁县| 丹棱县| 蓬莱市| 琼结县| 达拉特旗| 新巴尔虎右旗| 苏尼特右旗| 台中县| 新泰市| 互助| 宁安市| 弋阳县| 象山县| 赤水市| 湾仔区| 石景山区| 龙口市| 婺源县| 霍林郭勒市| 达日县| 临泽县| 拉萨市| 尉犁县| 板桥市| 博野县| 万全县| 广东省|