error execution phase check-etcd: etcd cluster is not healthy: failed to dial endpoint https://192.168.80.13:2379 with maintenance client: context deadline exceeded

created at 08-25-2021 views: 44

solution

Check etcd related pods

kubectl get pod -n kube-system

enter into 

kubectl exec -ti etcd-k8s-master01 -n kube-system sh
export ETCDCTL_API=3
etcdctl --cacert="/etc/kubernetes/pki/etcd/ca.crt" --cert="/etc/kubernetes/pki/etcd/server.crt" --key="/etc/kubernetes/pki/etcd/server.key" member list

found the following information

Remove the problematic k8s-master03 node

etcdctl --cacert="/etc/kubernetes/pki/etcd/ca.crt" --cert="/etc/kubernetes/pki/etcd/server.crt" --key="/etc/kubernetes/pki/etcd/server.key" member remove 17826e460c060952

Then re-execute the node join command, it shows success

created at:08-25-2021
edited at: 08-25-2021: