Failed to join nodes to your Kubernetes cluster

I used the ubuntu multi-node play-ground, and i created a kub cluster in each one of them, but when i tried to join the worker nodes tothe master node, this error rises :

error execution phase preflight: couldn’t validate the identity of the API Server: Get “https://172.25.0.77:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
To see the stack trace of this error execute with --v=5 or higher

for the kubernetes version :
[email protected]:~# kubectl version
Client Version: version.Info{Major:“1”, Minor:“20”, GitVersion:“v1.20.0”, GitCommit:“af46c47ce925f4c4ad5cc8d1fca46c7b77d13b38”, GitTreeState:“clean”, BuildDate:“2020-12-08T17:59:43Z”, GoVersion:“go1.15.5”, Compiler:“gc”, Platform:“linux/amd64”}
Error from server (NotFound): the server could not find the requested resource

I tried to do the same thing multiple times, even starting a new playground, but without success.
what should i do to solve this problem?

Best regards,

Hi @ghemarimahmoud17,
Please check your inbox. I have mailed you the steps. I didn’t see any issues with the playground.



Regards,

The problem was with the IP address of the master node, i used the eth1 [email protected] instead of the eth0 [email protected] when initiating it.
kubeadm init --apiserver-cert-extra-sans=controlplane --apiserver-advertise-address < masterNode eth0 [email protected] > --pod-network-cidr=10.244.0.0/16

1 Like

Glad, it worked for you. :+1: :+1: