kubenetes节点加入master出错

节点加入kubeletes的master的时候报错如下:

[preflight] Running pre-flight checks.
        [WARNING FileExisting-crictl]: crictl not found in system path
[preflight] Some fatal errors occurred:
        [ERROR Port-10250]: Port 10250 is in use
        [ERROR DirAvailable--etc-kubernetes-manifests]: /etc/kubernetes/manifests is not empty
        [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
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`

kubenetes节点加入master出错_第1张图片

解决办法:

在节点上先执行如下命令,清理kubeadm的操作,然后再重新执行join 命令:

kubeadm reset

你可能感兴趣的:(配置一些东西)