Hi, Can anyone tell me why I am having this error? Kubernetes version 1.23.8, Do . . .

Sajid Farooq:
Hi, Can anyone tell me why I am having this error? Kubernetes version 1.23.8, Docker version 20.10.1 build 831ebea. I am trying to build a cluster.

Pita:
try to disable the firewall
For Ubuntu sudo ufw disable in all the nodes

Sajid Farooq:
@Pita not working still

Pita:
I’ve just realised the msg in your screenshot, did you check if kubelet is working properly?

Pita:

Pita:
sudo systemctl status kubectl

Sajid Farooq:
@Pita please check this

Sajid Farooq:
I think there is a port issue. But i am not able to resolve it.

Sajid Farooq:
kubectl, kubeadm not working

Pita:
sorry man… my mistake kubelet not kubectl
sudo systemctl status kubelet
Just a suggestion, before put your hands in the jam, try to understand what are you doing.
Do not run command randomly, the documentation is your best friend. kubectl is not a service :wink:

Pita:
kubeadm is not a service.
Anyway kubelet is running properly.
The previous kubeadm init created some files and now the same cmd complains. You can try to run kubeadm reset
Maybe you could repeat the whole process from the beginning in a brand new host.
https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-reset/

Sajid Farooq:
@Pita please have a look at kubelet. How can I recover it?

Pita:
I suggest to reinstall the entire cluster, all the nodes, on brand new VMs