Welcome to the Linux Foundation Forum!

Lab 16.2 step 6: error execution phase preflight: couldn't validate the identity of the API Server.

Jenad1kr
Jenad1kr Posts: 3
edited December 2020 in LFS258 Class Forum

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.

Comments

  • Hi @Jenad1kr,

    The syntax of the IP address is incorrect.

    Please revisit the lab manual, and also examine closely the existing entry in/etc/hosts file for a correct IP address syntax.

    Regards,
    -Chris

Categories

Upcoming Training