[root@k8snode ~]# kubeadm join 192.168.1.200:6443 --token ldxc3h.xo65e5vce0n9nzdz \
> --discovery-token-ca-cert-hash sha256:f7afde1770e767386be35332aa4703258516b5feb3238e619b7fb9b90a019596
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR FileAvailable--etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists
[ERROR Port-10250]: Port 10250 is in use
[ERROR FileAvailable--etc-kubernetes-pki-ca.crt]: /etc/kubernetes/pki/ca.crt already exists
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
清理kubeadm的操作,重写join
[root@k8snode ~]# kubeadm reset
[root@k8snode ~]# kubeadm join 192.168.1.200:6443 --token ldxc3h.xo65e5vce0n9nzdz --discovery-token-ca-cert-hash sha256:f7afde1770e767386be35332aa4703258516b5feb3238e619b7fb9b90a019596
标签:node,kubernetes,--,ca,token,报错,preflight,kubeadm,k8s From: https://www.cnblogs.com/yitian395/p/16795299.html