1、安装报文件存在报错
/etc/kubernetes/pki/ca.crt already exists
/etc/kubernetes/kubelet.conf already exists
[root@com10-81 ~]# kubeadm join --token xxxx 10.4.37.167:6443 --discovery-token-ca-cert-hash sha256:xxxxxx
[preflight] Running pre-flight checks.
[WARNING SystemVerification]: docker version is greater than the most recently validated version. Docker version: 17.12.1-ce. Max validated version: 17.03
[WARNING FileExisting-crictl]: crictl not found in system path
[preflight] Some fatal errors occurred:
[ERROR Port-10250]: Port 10250 is in use
[ERROR FileAvailable--etc-kubernetes-pki-ca.crt]: /etc/kubernetes/pki/ca.crt already exists
[ERROR FileAvailable--etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists
2、解决思路
1、先执行 kubeadm reset,重新初始化节点配置: kubeadm reset
2、再次执行join kubeadm join --token xxxxx master_ip:6443 --discovery-token-ca-cert-hash sha256:xxxx