To set up a multi-node cluster, join the nodes after configuring Kubernetes on each node.
On the primary node, run the following command as many times as there are secondary nodes:
sudo -E /snap/bin/microk8s add-node
This command returns a token command to run on one of the secondary nodes. You cannot reuse this token command on all secondary nodes; each node requires a unique one. Take note of the token command that each call returns.
On each of the secondary nodes, run a different token command from the previous step (obtained from the primary node). It should look similar to the following:
sudo -E /snap/bin/microk8s join <IP OR HOSTNAME>:25000/<TOKEN>
There is no need to wait for a node to join the cluster before adding the next node. You can add them in parallel.