Lab 16.2 step 6: error execution phase preflight: couldn't validate the identity of the API Server.
When I am trying to kubeadm join the 3rd master node, I get the following error.
error execution phase preflight: couldn't validate the identity of the API Server: Get "https://k8smaster:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup k8smaster on 127.0.0.53:53: server misbehaving
My nodes are in AWS, and at the start of this lab, I made an image out of the master node and created 3 instances from this node (HA proxy, second and third master). i had to kubeadm reset on my second master node before i was able to join to the master.
/etc/hosts has the ip of the primary master
I had rebooted all of the nodes, including the primary master.
Any help is appreciated in figuring this error out. thanks.