Q.For this question, please set the context to cluster4 by running:
kubectl config use-context cluster4
cluster4-node01 node that belongs to cluster4 seems to be in the NotReady state. Fix the issue and make sure this node is in Ready state.
Note: You can ssh into the node using ssh cluster4-node01.
Troubleshooting:
It was giving below error
Error: failed to construct kubelet dependencies: unable to load client CA file /etc/kubernetes/pki/CA.crt: open /etc/kubernetes/pki/CA.crt: no such file or directory
Check if /etc/kubernetes/pki/CA.crt file exists:
So there was no file “CA.cert” but “ca.cert” was present. So went into vi /var/lib/kubelet/config.yaml and made the changes and restarted the kubelet. But still node is in notReady state. Did i miss anything? what should i do
There may be more than one error.
After making the fix you described, check for more issues in kubelet logs.
yes, there was error with kubelet.conf file. i fixed it and node came into ready state. Thanks.