cookeem/kubeadm-ha

i have a problem "add etcd member to the cluster"

forkballpitch opened this issue · 8 comments

hello~
i have a question about "add etcd member to the cluster"

my kubernetes version 1.12.1
and os is ubuntu 16.0.4

i did
kubectl exec -n kube-system etcd-${CP0_HOSTNAME} -- etcdctl --ca-file /etc/kubernetes/pki/etcd/ca.crt --cert-file /etc/kubernetes/pki/tcd/peer.crt --key-file /etc/kubernetes/pki/etcd/peer.key --endpoints=https://${CP0_IP}:2379 member add ${CP1_HOSTNAME} https://${CP1_IP}:2380

but i got
Unable to connect to the server: dial tcp 178.128.174.200:6443: i/o timeout

this error.. firewalld was all down and i copied cert files already..

please help me thank you

It seems your command is wrong, check this out:

/etc/kubernetes/pki/tcd/peer.crt

Was that problem fixed?

show me the kube-dashboard status, run command below:

kubectl get pods -n kube-system

Yes, the dashboard is normal, make sure the port not block by your cloud provider, you should check your cloud provider’s firewall settings

You are welcome, I think this issue should be closed