The some issues is more of a gut feeling. I have no idea how microk8’s sets up its config, but it “just works” out of the box for local, Looking at my master node it doesn’t even have a
~/.kube/config file, but I can still do microk8s.kubectl commands.
My method isn’t the “recommended setup”, but it seems to work really well.
Reading the docs I do not see how it would work with the
~/.kube/config. It seems to point at the opposite.
MicroK8s comes with its own packaged version of the kubectl command for operating Kubernetes. By default, this is accessed through MicroK8s, to avoid interfering with any version which may already be on the host machine (including its configuration).
I would setup a master config with all your masters and use kubectl, not microk8s kubectl. That would seem to solve your issue