原 [ERROR FileAvailable--etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists
版权声明:本文为博主原创文章,请尊重他人的劳动成果,转载请附上原文出处链接和本声明。
本文链接:https://www.91mszl.com/zhangwuji/article/details/1406
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
2.1)删除k8s配置文件
rm -f /etc/kubernetes/kubelet.conf
2.2) 删除K8S证书
rm -f /etc/kubernetes/pki/ca.crt
2.3)然后重新加入master节点
kubeadm join 192.168.78.128:6443 --token 20qv0a.be2y1ggnefvr282g \
--discovery-token-ca-cert-hash sha256:900e24e31fd7002e9571086263e23b920ec804949d6cd6bffc56e91f93c694c1
2022-07-26 09:17:43 阅读(1844)
名师出品,必属精品 https://www.91mszl.com
博主信息