当Kubernetes主服务器发生故障时会发生什么? [英] What happens when the Kubernetes master fails?

查看:89
本文介绍了当Kubernetes主服务器发生故障时会发生什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试找出Kubernetes主服务器在只有一个主服务器的集群中发生故障时会发生什么.如果发生这种情况,Web请求是否仍会路由到Pod,还是只是整个系统都关闭了?

根据建立在Kubernetes之上的OpenShift 3文档,( kubeadm-dind-cluster 类型.

I've been trying to figure out what happens when the Kubernetes master fails in a cluster that only has one master. Do web requests still get routed to pods if this happens, or does the entire system just shut down?

According to the OpenShift 3 documentation, which is built on top of Kubernetes, (https://docs.openshift.com/enterprise/3.2/architecture/infrastructure_components/kubernetes_infrastructure.html), if a master fails, nodes continue to function properly, but the system looses its ability to manage pods. Is this the same for vanilla Kubernetes?

解决方案

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.

这篇关于当Kubernetes主服务器发生故障时会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆