Unable to connect to the server: x509: certificate signed by unknown authority


Did some digging around and found that it is because of self signed certificates. This can be solved by adding


to every kubectl command or (the preferred way) adding:

--kubelet-certificate-authority=/srv/kubernetes/ca.crt \
--kubelet-client-certificate=/var/run/kubernetes/kubelet.crt \

to the kube-apiserver startup shell script.

Leave a Reply

Your email address will not be published. Required fields are marked *