As shown by #66 and #67, if user has ufw enabled, some rules will need to be added to allow traffic for the apiserver and dns (maybe others?).
Let's add the necessary rules to the readme.
I wonder if this problem would go away if we used the loopback interface by default (which I think we should do, see https://github.com/juju-solutions/microk8s/issues/63#issuecomment-402865403). Then maybe ufw modifications would only be required if you wanted to expose your microk8s on a different interface.
Ignore previous comment, loopback is irrelevant. Actual fix described in https://github.com/juju-solutions/microk8s/issues/67#issuecomment-404921973
I suspect we also need to run sudo ufw default allow routed in order to enable IP forwarding. I have ufw enabled on a host and while I could ping and DNS resolve between containers, many things couldn't reach the outside world and had spotty connectivity to each other that was tricky to diagnose. Adding the above resolved it.
@davefinster Awesome, thanks for that tip. Will add that to the troubleshooting section.
@davefinster FWIW, I think we came to the same conclusion here: https://github.com/ubuntu/microk8s/issues/75#issuecomment-407357469
readme was updated by #77
Most helpful comment
I suspect we also need to run
sudo ufw default allow routedin order to enable IP forwarding. I have ufw enabled on a host and while I could ping and DNS resolve between containers, many things couldn't reach the outside world and had spotty connectivity to each other that was tricky to diagnose. Adding the above resolved it.