Bootstrap is missing , how to revocer

kubectl get nodes
The connection to the server controlplane:6443 was refused - did you specify the right host or port?

i can see the bootstrap is missing
–bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf

ls -l /etc/kubernetes/bootstrap-kubelet.conf
ls: cannot access ‘/etc/kubernetes/bootstrap-kubelet.conf’: No such file or directory

Hi @ranjit.mandre,
To get a proper assistance, can you please provide the following details onwards?
a.) Where are you trying this? If it’s in our lab then LAB URL would be helpful.
b.) What command did you run?
c.) If possible, pls provide an error screenshot.

Regards,

@Tej-Singh-Rana
Thanks for your reply
Master node: deployment has image: ‘k8s.gcr.io/coredns/coredns:v1.8.6

Fix kube-apiserver. Make sure its running and healthy.

kubeconfig = /root/.kube/config, User = ‘kubernetes-admin’ Cluster: Server Port = ‘6443’

a.) Where are you trying this? If it’s in our lab then LAB URL would be helpful.
yes its a LAB environment
b.) What command did you run?
systemctl restart kubelet.service and changed the port from controlplane:6433 to controlplane:6443
c.) If possible, pls provide an error screenshot.

I have fixed now
ls: cannot access ‘/etc/kubernetes/pki/ca-authority.crt’: No such file or directory

[email protected] ➜ kubectl get nodes
NAME STATUS ROLES AGE VERSION
controlplane Ready control-plane,master 34m v1.23.0
node01 Ready,SchedulingDisabled 33m v1.23.0

[email protected]