Worker node is giving cert issue on every kubectl command

Anju
Apr 4, 2021

--

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 "kubernetes")
  1. Reset the node
kubeadm reset

2. Delete the config file

rm -rf $HOME/.kube/config

3. Re-join the node

# Run this on Masterkubeadm token create --print-join-command# Copy the output of the above command on worker node
#To See current tokens and sha:kubeadm token listopenssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt  | openssl rsa -pubin -outform der 2>  /dev/null | openssl dgst -sha256 -hex | sed 's/^.* //'

--

--

Anju
Anju

Written by Anju

A DevOps engineer who loves automating everything (almost), exploring new places, and finding peace in nature. Always looking for the next adventure!

No responses yet