【问题标题】:Kube-api server not coming up on BaremetalKube-api 服务器没有出现在 Baremetal 上
【发布时间】:2017-03-31 18:53:05
【问题描述】:

我正在尝试按照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 中的同一接口,但仍然失败。

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

【问题讨论】:

  • 对不起。那个指南看起来很糟糕。我尝试通读它,但很难理解它试图做什么。我建议您尝试使用 kubeadm 设置集群。它更容易,支持 CentOS,并且可以在节点kubernetes.io/docs/getting-started-guides/kubeadm 之间使用 TLS 证书进行加密通信
  • @JustinGarrison 你的意思是 APIServer 和从站之间的 TLS。我不认为加密涵盖每个节点之间的通信:这是由网络层(即 Weave 或其他)处理的

标签: centos kubernetes etcd flannel


【解决方案1】:

问题的根源是 kube-apiserver 无法访问 etcd,可能是因为它刚刚启动并且尚未完全启动。

2379 是 etcd 的客户端端口,192.168.121.9 是主节点的解析 IP。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-23
    • 1970-01-01
    • 2021-08-15
    • 1970-01-01
    • 2018-10-27
    • 2020-02-02
    相关资源
    最近更新 更多