gpt4 book ai didi

centos - Kube-api 服务器没有出现在 Baremetal 上

转载 作者:行者123 更新时间:2023-12-04 19:43:57 24 4
gpt4 key购买 nike

我正在尝试按照 http://kubernetes.io/docs/getting-started-guides/centos/centos_manual_config/ 上的说明在我的笔记本电脑上安装 Kubernetes。

我在/etc/hosts 中添加了以下 IP
192.168.121.9 centos-master
192.168.121.65 centos-minion-1
192.168.121.66 centos-minion-2
192.168.121.67 centos-minion-3
除了法兰绒安装外,都按照程序进行。

我正在逐步运行以下实例
for SERVICES in etcd kube-apiserver; do
systemctl restart $SERVICES
systemctl enable $SERVICES
systemctl status $SERVICES
done

etcd 启动良好,但 kube-apiserver 失败并出现以下错误:
Nov 17 14:40:11 localhost kube-apiserver: F1117 14:40:11.842367 6176 controller.go:84] Unable to perform initial IP allocation check: unable to refresh the service IP block: error #0: dial tcp 192.168.121.9:2379: i/o timeout

尝试将 192.168.121.9 IP 添加到 BareMetal 中的同一接口(interface),但仍然失败。

不知道这里有什么问题..

最佳答案

您的问题的根源是 kube-apiserver 无法访问 etcd,可能是因为它刚刚启动并且尚未完全启动。
2379是 etcd 的客户端端口,192.168.121.9是主节点的解析 IP。

为什么 etcd 不接受请求,或者 kube-apiserver 无法访问,需要进一步调查。

关于centos - Kube-api 服务器没有出现在 Baremetal 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40651368/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com