Microk8s joining cluster failed. Could not verify the identity of

Viewed 91

I am trying to learn microk8s. I installed 3 Ubuntu in my virtual box. I installed the microk8s on each of these virtual machines. I want machines in the form of master node and 2 worker nodes to communicate with each other. I tried to use

microk8s add-node 

command in first machine. And in the second machine, I tried to join this as a worker. But it does not work. I gave this error:

enter image description here

How can I fix this? Thank you for your answers!

1 Answers

This has been fixed in the latest master, and the fix is working on being backported to all supported versions (1.21, 1.22, 1.23).Check for latest version.

You can try the following:

#on the existing cluster node. restarting the service might not be needed

sudo snap restart microk8s.daemon-cluster-agent

micro k8s add-node

This will give you a new join URL. You should then be able to use that to join your second node to the cluster.

Here is the github link you can refer to for more information.

Related