How to recreate certitifcate for azure hci AKS worker node ?

Demo 20 Reputation points
2024-09-09T18:36:06.4966667+00:00

Hello,
Can anyone provide the steps to generate a certificate for Kubelet?
The AKS HCI worker node is in a "NotReady" state because Kubelet is not running. The Kubelet logs show the following error

:moc-lhylsw0kus0 kubelet[1514068]: E0909 16:25:49.013883 1514068 bootstrap.go:265] part of the existing bootstrap client certificate in /etc/kubernetes/kubelet.conf is expired: 2024-08-30 07:43:22 +0000 UTC Sep 09 16:25:49 moc-lhylsw0kus0 kubelet[1514068]: E0909 16:25:49.013916 1514068 run.go:74] "command failed" err="failed to run Kubelet: unable to load bootstrap kubeconfig: stat /etc/kubernetes/bootstrap-kubelet.conf: no such file or directory"or it will follow same steps as mentioned on Kubernetes documentation .

Azure Stack HCI
Azure Stack HCI
A hyperconverged infrastructure operating system delivered as an Azure service that provides security, performance, and feature updates.
356 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,142 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.