0

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 this command in first machine:

microk8s add-node 

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?

halfer
  • 19,824
  • 17
  • 99
  • 186
nobody1879
  • 41
  • 4

1 Answers1

0

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 issue you can refer to for more information.

halfer
  • 19,824
  • 17
  • 99
  • 186
Sai Chandra Gadde
  • 2,242
  • 1
  • 3
  • 15