I had this issue myself using rpi4b 4GB and ubuntu server 20.04. After a bit of playing around I got it to work by setting the hostname to be identical to what is in each /etc/hosts entry, for example:
what I’ve done:
add all the IP addresses and server’s name of the nodes in ur cluster under /etc/hosts of master node:
10.32.234.105 master #IP address and server’s name of the master node
10.32.234.106 worker1 #IP address and server’s name of the worker node
10.32.234.107 worker2
then
add this under /etc/hosts of each worker node
10.32.234.106 worker1 #IP address and server’s name of the worker node
after this, again run the $ microk8s add-node, and build a Kubernetes cluster, u’ll find it solved.