Removing master node from multiple master k8s cluster

Hi,

I have set up a multiple master k8s cluster with Haproxy (Master2, Master3, Worker1, hap). And I would like remove one master node for maintenance by using the following commands
In Master2
kubectl drain master3 --ignore-daemonsets
kubectl delete node master3
In Master3
kubeadm reset

After that, I used " kubectl get pods" in master2, the following error occures:

master2@master2:~ kubectl get pods -A Unable to connect to the server: net/http: TLS handshake timeout master2@master2:~ kubectl get pods -A -o wide
Error from server (InternalError): an error on the server ("") has prevented the request from succeeding (get pods)

Is the error due to my inappropriate master node removing?

1 Like

I am also facing the same error in EKS cluster, can someone please help?

hello @hlngai and welcome to our community @arya.geetha i think this article will answer your question please check it :