If you get the dreaded error when trying to connect via kubectl
from a remote machine to your cluster it means you need to ensure the correct IP addresses are added into the If you get the dreaded [] when trying to connect via kubectl
from a remote machine to your cluster it means you need to ensure the correct IP addresses are added into the If you get the dreaded [] when trying to connect via kubectl
from a remote machine to your cluster it means you need to ensure the correct IP addresses are added into the /var/snap/microk8s/current/certs/csr.conf.template
file and certificates are regerenerated.
Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "10.152.183.1")
See stackoverflow answer.
--
Also ensure we regenerate the certificates with a sudo microk8s.refresh-certs
command.