0

I am running microk8s on my Ubuntu laptop as development environment. Every time I move to another network (e.g from home to office or vice versa), I am no longer able to run kubernetes commands as normally - instead, they hang indefinitely. I think the issue is that the microk8s certificates are dependent on my machine's IP address, so if my IP changes, the certificates are invalidated. I figured out that my issues can be fixed by refreshing certificates:

microk8s config > ~/.kube/config kubectl config use-context microk8s sudo microk8s refresh-certs --cert ca.crt 

So now I'm running those commands every time I switch networks. I'd like to find a permanent fix since I expect this issue to also occur for other developers in my project, but have not been able to find one.

Would there be a way to configure microk8s so that it will run independent of which network I am connected to?

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.