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

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

主站蜘蛛池模板: 电白县| 包头市| 宜川县| 九寨沟县| 鸡东县| 卢龙县| 南部县| 上思县| 大方县| 晴隆县| 革吉县| 共和县| 驻马店市| 兴仁县| 九台市| 手游| 板桥市| 郯城县| 肥乡县| 武平县| 甘肃省| 安阳市| 兴山县| 蒲江县| 祁连县| 河北省| 万全县| 博爱县| 宣恩县| 罗定市| 从化市| 茂名市| 巫溪县| 绿春县| 仁寿县| 怀来县| 广东省| 西丰县| 兰州市| 玉山县| 赤峰市|