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

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).

主站蜘蛛池模板: 阿城市| 石泉县| 五华县| 宁波市| 凤凰县| 阿尔山市| 什邡市| 舟山市| 永福县| 岳普湖县| 休宁县| 咸阳市| 彰武县| 安阳县| 山阳县| 台安县| 广东省| 铜梁县| 贵阳市| 泸溪县| 河南省| 会东县| 仲巴县| 昭苏县| 宝坻区| 克拉玛依市| 新干县| 锦州市| 垣曲县| 康保县| 曲周县| 比如县| 天祝| 金阳县| 长子县| 望谟县| 涡阳县| 台中市| 德阳市| 吉林市| 营山县|