如果 etcd 停止工作,Kubernetes 会发生什么?

问题描述

在运行一个完整的集群时,如果 etcd 突然停止工作,会发生什么?

Pods 服务和部署会继续吗?

解决方法

如果 etcd cluster 的大部分已永久失败,则 etcd members 被视为失败。

etcd cluster 失败后,所有正在运行的工作负载可能会继续运行。但是由于 etcd 角色,Kubernetes 无法对其当前状态进行任何更改。尽管已调度的 pod 可能会继续运行,但无法调度新的 pod。 因此,在 Kubernetes 集群中运行的应用程序可能会继续为流量提供服务,但 etcd 集群应该尽快recovered

您可以在 Rancher docs 中找到有关 Kubernetes 中 etcd's 角色的更多信息。