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

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

主站蜘蛛池模板: 镇沅| 鹿泉市| 安阳市| 临安市| 东乌珠穆沁旗| 上杭县| 绥滨县| 祥云县| 宜都市| 武邑县| 都昌县| 珠海市| 和平县| 新和县| 澄城县| 瓮安县| 澜沧| 泰来县| 大埔区| 丰顺县| 南漳县| 平定县| 麻城市| 东兰县| 万载县| 阿坝| 邵东县| 安庆市| 祁东县| 舞钢市| 电白县| 新疆| 涿州市| 海城市| 万年县| 南京市| 浪卡子县| 曲周县| 崇阳县| 建阳市| 吉木乃县|