且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

当Kubernetes主服务器发生故障时会发生什么?

更新时间:2022-10-15 16:59:05

It's my understanding that the master runs the API, and now (since 1.3?) Manages the underlying cloud infrastructure. When it is offline, the API will be offline, so the cluster ceases to be a cluster and is instead a bunch of ad-hoc nodes for this period. The cluster will not be able to respond to node failures, create new resources, move pods to new nodes, etc. Until the master is back online.

However, in any case, life for applications will continue as normal unless nodes are rebooted, or there is a dramatic failure of some sort during this time, because TCP/ UDP services, load balancers, DNS, the dashboard, etc. Should all continue to function.

If a node is rebooted, DNS queries may not resolve correctly until the master comes back online.

If you'd like to test this out yourself, I recommend kubeadm-dind-cluster or kind.