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

标签 centos kubernetes etcd flannel

我正在尝试按照 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/

相关文章:

apache-zookeeper - ZooKeeper 和 Etcd 有多好?

docker - 使用 "etcdctl member add"时CoreOS成员节点将无法启动

php - 如何使用 yum 轻松地将 posix 支持添加到 PHP?

kubernetes - Prometheus 中的 volume 和 volumemount 不适用?使用 helm chart 安装 Prometheus-operator

kubernetes - 在kubernetes上运行的traefik AWS ELB上的真实IP

azure - 尝试使用 AKS 在 Azure 上创建托管 Kubernetes 集群时出现 "Incorrect padding"

python - 应用程序找不到安装为 rpm 的 python 库

centos - 无法从 src 构建 rpm

linux - 不使用通配符的预期工具不匹配换行符

Systemd 字符串转义