当我在 3 个 ubuntu14.04 节点上安装 kubernetes 时,它会部署并突然停止。我有这个集群的 3 个节点:172.25.2.31 ukub01 172.25.2.32 ukub02 172.25.2.33 ukub03 我按照这个文档安装: http://kubernetes.io/v1.0/docs/getting-started-guides/ubuntu 。 html
config-default.sh 设置为:
export nodes=${nodes:-"root@ukub01 root@ukub02 root@ukub03 "}
role=${role:-"ai i i"}
export NUM_MINIONS=${NUM_MINIONS:-3}
export SERVICE_CLUSTER_IP_RANGE=${SERVICE_CLUSTER_IP_RANGE:-172.25.3.0/24}
export FLANNEL_NET=${FLANNEL_NET:-172.16.0.0/16}
部署消息:
root@ukub01:/opt/kubernetes/cluster# KUBERNETES_PROVIDER=ubuntu ./kube-up.sh
... Starting cluster using provider: ubuntu
... calling verify-prereqs
Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa)
... calling kube-up
Deploying master and node on machine ukub01
make-ca-cert.sh 100% 3398 3.3KB/s 00:00
config-default.sh 100% 3232 3.2KB/s 00:00
util.sh 100% 19KB 19.4KB/s 00:00
kubelet.conf 100% 644 0.6KB/s 00:00
kube-proxy.conf 100% 684 0.7KB/s 00:00
flanneld.conf 100% 577 0.6KB/s 00:00
kube-proxy 100% 2230 2.2KB/s 00:00
kubelet 100% 2155 2.1KB/s 00:00
flanneld 100% 2159 2.1KB/s 00:00
kube-controller-manager.conf 100% 744 0.7KB/s 00:00
kube-apiserver.conf 100% 674 0.7KB/s 00:00
kube-scheduler.conf 100% 674 0.7KB/s 00:00
etcd.conf 100% 664 0.7KB/s 00:00
flanneld.conf 100% 568 0.6KB/s 00:00
kube-controller-manager 100% 2672 2.6KB/s 00:00
etcd 100% 2073 2.0KB/s 00:00
flanneld 100% 2159 2.1KB/s 00:00
kube-apiserver 100% 2358 2.3KB/s 00:00
kube-scheduler 100% 2360 2.3KB/s 00:00
reconfDocker.sh 100% 1759 1.7KB/s 00:00
kube-controller-manager 100% 31MB 30.8MB/s 00:00
etcd 100% 6494KB 6.3MB/s 00:00
flanneld 100% 8695KB 8.5MB/s 00:00
kube-apiserver 100% 37MB 36.9MB/s 00:00
etcdctl 100% 6041KB 5.9MB/s 00:00
kube-scheduler 100% 16MB 16.2MB/s 00:01
kube-proxy 100% 16MB 16.1MB/s 00:01
kubelet 100% 33MB 33.1MB/s 00:00
flanneld 100% 8695KB 8.5MB/s 00:00
Connection to ukub01 closed.
我检查了 /var/log/upstart 中的日志。有两个文件,我没有找到错误的原因。法兰绒日志:
I1010 14:47:40.249071 05088 main.go:292] Exiting...
systemd-logind.log
New session 3 of user root.
New session 4 of user root.
Removed session 4.
New session 5 of user root.
Removed session 3.
我觉得ubuntu上如果有option设置文件可以手动安装kubernetes/etcd/flannel,并且我在3个节点上安装了etcd&flannel,但是还是找不到kubernetes部分。
你能帮我解决这个错误或告诉我在哪里可以找到 kubernetes 安装和选项设置文档吗?