【发布时间】: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