本文介绍了无法连接到Kubernetes的ETCD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我,现在我试图通过连接到ETCD并手动更改其中的一些密钥来将其恢复。我成功地撞到了etcd容器中:

I've accidentally drained/uncordoned all nodes in Kubernetes (even master) and now I'm trying to bring it back by connecting to the ETCD and manually change some keys in there. I successfuly bashed into etcd container:

 c由于


  1. 使用错误的证书。您可能正在使用对等证书而不是客户端证书。您需要检查Kubernetes API Server参数,该参数会告诉您客户端证书在哪里,因为Kubernetes API Server是ETCD的客户端。然后,您可以在节点的 etcdctl 命令中使用这些相同的证书。

  1. Using wrong certificates. You could be using peer certificates instead of client certificates. You need to check the Kubernetes API Server parameters which will tell you where are the client certificates located because Kubernetes API Server is a client to ETCD. Then you can use those same certificates in the etcdctl command from the node.

etcd群集不再运行,因为对等成员已关闭。

The etcd cluster is not operational anymore because peer members are down.

这篇关于无法连接到Kubernetes的ETCD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-01 12:38