我正在使用测试 kubenetes 集群(Kubeadm 1 个主节点和 2 个节点设置),我的公共 IP 不时更改,当我的公共 IP 更改时,我无法连接到集群并且出现以下错误
Kubernetes Unable to connect to the server: dial tcp x.x.x.x:6443: i/o timeout
我也有始终一致的私有 IP 10.10.10.10。
我使用以下命令创建了 Kubernetes 集群
kubeadm init --control-plane-endpoint 10.10.10.10
但它仍然失败,因为证书已签署到公共 IP,下面是错误
The connection to the server x.x.x.x:6443 was refused - did you specify the right host or port?
有人可以帮助设置 kubeadm,并且应该允许所有 IP 类似于 0.0.0.0 并且我对安全观点很好,因为它是测试设置。或任何参数修复。