Hi All, While practicing the Install cluster I stuck at joining node01 because o . . .

PP:
Hi All, While practicing the Install cluster I stuck at joining node01 because of preflight Errors:

Can someone help me how to fix it and move forward?

ucipass:
Just delete those 2 files and try to rejoin the cluster with the same command

Sampathkaran:
@PP you should run the join command from worker node…but you are trying to execute in the controlplane

PP:
Sure @Sampathkaran Let me try it

Deekshith Hadil:
You should probably do kubeadm reset to clear everything

PP:
@ucipass I deleted and re-run it. But the same error. @Deekshith Hadil kubeadm reset didn’t worked. I believe @Sampathkaran suggestion make sense. I will give a try.

Deekshith Hadil:
I didn’t face this problem on lab. But a lot of times on local.
These are the steps I usually follow.

  1. kubeadm reset --force
  2. rm -rf /var/lib/kubelet /etc/kubernetes /var/lib/etcd $HOME/.kube
    WARNING: carefull with rm -rf. This deletes everything. In case you want backup, rename the folders
    to something else.

ucipass:
@Deekshith Hadil suggestion is correct. I would rejoin from the worker node after that. I didn’t notice you were on the controlnode

Deekshith Hadil:
oops… I didn’t notice that either. @PP if you are joining the node, run the join command on the worker node. Not controlplane.