我在 /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
并遵循了除 flannel 安装之外的过程。
我正在逐步运行以下实例
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 中的同一接口,但仍然失败。
不知道这里有什么问题..