Closed KeithTt closed 6 years ago
I have two masters, and I add the label kubeadm.alpha.kubernetes.io/role=master
to both of them, I just copy the pem file to the assigned node and the pod works.
# kubectl get po --all-namespaces -o wide
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE
kube-system contiv-api-proxy-d29m7 1/1 Running 1 5m 122.14.206.195 uy05-13
kube-system contiv-etcd-5rwb6 1/1 Running 0 5m 122.14.206.195 uy05-13
kube-system contiv-etcd-q549f 1/1 Running 0 5m 192.168.5.104 uy08-07
kube-system contiv-netmaster-xj65z 1/1 Running 0 5m 192.168.5.104 uy08-07
kube-system contiv-netplugin-4wjfh 1/1 Running 0 4m 122.14.206.195 uy05-13
kube-system contiv-netplugin-bc75r 1/1 Running 0 4m 192.168.5.105 uy08-08
kube-system contiv-netplugin-r4cpz 1/1 Running 0 4m 192.168.5.104 uy08-07
kube-system heapster-59ff54b574-jd4x8 1/1 Running 0 1d 192.168.72.0 uy05-13
kube-system kube-apiserver-uy05-13 1/1 Running 0 1d 122.14.206.195 uy05-13
kube-system kube-apiserver-uy08-07 1/1 Running 0 1d 192.168.5.104 uy08-07
kube-system kube-controller-manager-uy05-13 1/1 Running 0 1d 122.14.206.195 uy05-13
kube-system kube-controller-manager-uy08-07 1/1 Running 0 1d 192.168.5.104 uy08-07
kube-system kube-dns-545bc4bfd4-b9njt 3/3 Running 0 1d 192.168.122.2 uy05-13
kube-system kube-proxy-bbssx 1/1 Running 0 1d 192.168.5.105 uy08-08
kube-system kube-proxy-xl5m6 1/1 Running 0 1d 192.168.5.104 uy08-07
kube-system kube-proxy-zzkvq 1/1 Running 0 1d 122.14.206.195 uy05-13
kube-system kube-scheduler-uy05-13 1/1 Running 0 1d 122.14.206.195 uy05-13
kube-system kube-scheduler-uy08-07 1/1 Running 0 1d 192.168.5.104 uy08-07
kube-system kubernetes-dashboard-57f7b78668-jcsq5 1/1 Running 0 22h 192.168.4.69 uy08-08
And I open the dashboard, it seems everything is working.
kube version: 1.8.2 docker version: 17.06.2-ce etcd version: 3.2.9 OS version: debian stretch
how to add this pem...