can we please add this hint to the official documentation? Took me 2hours and only hit the refresh-certs sub-command by luck. How about:
After changing, refresh the certificates with:
sudo microk8s refresh-certs
This will generate new certs and restart the apiserver. Your DNS server settings and
kubeconfig
file must be updated appropriately.
(I hereby release all rights I may have had on this snipplet.)