当前位置:网站首页>Tke single node risk avoidance

Tke single node risk avoidance

2022-06-24 02:30:00 Zhuruiqing

Risk statement

Node pool is not enabled in the cluster , When there is only one in the cluster Node Node time , It is a single point of risk , When Node Downtime will affect the business , Unable to schedule because there are no other resources .

Risk aversion measures

Mode one At least keep the cluster nodes in 2 More than nodes

Add new nodes : Cluster management --> Node management --> The new node

image.png

> Be careful : Recommend creating Node Select the operating system as Tencent Linux2.4 operating system , stay TKE Use Tencent Linux For the advantages of using, please refer to https://cloud.tencent.com/document/product/457/50124

Mode two Create a node pool

Node pools help you manage Kubernetes Nodes in the cluster , Tencent cloud container service TKE Introduce the concept of node pool . With the basic functions of node pool , You can easily and quickly create 、 Manage and destroy nodes , And realize the dynamic expansion and contraction of nodes :

  • When there are instances in the cluster that cannot be scheduled due to insufficient resources (Pod) when , Auto trigger expansion , For you to reduce labor costs .
  • When the capacity reduction conditions such as node idle are met , Automatically trigger volume reduction , Save resource cost for you .

To create a new node pool : Cluster management --> Node management --> Node pool --> New node pool

image.png
image.png

Be careful : Recommend creating Node Select the operating system as Tencent Linux2.4 operating system , stay TKE Use Tencent Linux For the advantages of using, please refer to https://cloud.tencent.com/document/product/457/50124

In the scenario of multiple subnets, it is recommended to modify the instance creation policy of the expansion group after the node pool is created “ Preferred zone ( subnet ) first ” Changed to: “ Area available on ( subnet ) Break up ” Here's the picture

image.png
image.png
image.png
image.png

In the scenario of multiple zones , Give priority to creating instances in multiple availability zones .

原网站

版权声明
本文为[Zhuruiqing]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/10/20211028225743774y.html

随机推荐