kubernetesmicrok8s

microk8s Connection to port 16443 was refused


I'm getting following error message:

root@master-1:~# microk8s.kubectl get no
The connection to the server 127.0.0.1:16443 was refused - did you specify the right host or port?

Even microk8s.kubectl cluster-info dump fails with message above. When I run microk8s start it still the same.


Solution

  • iptables were provisioned by ansible which were messing with microk8s iptables configuration