K8S error: Unable to connect to the server: x509: certificate signed by unknown authority [Solved]

Execute the command, and then try kubectl get nodes

mkdir -p $HOME/.kube

sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config

sudo chown $( id -u ) : $( id -g ) $HOME/.kube/config

If not, execute kubectl get nodes –insecure-skip-tls-verify and try

Similar Posts:

Leave a Reply

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