91名师指路-头部
91名师指路

[ERROR FileAvailable--etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists

由于某些原因,现在不支持支付宝支付,如需要购买源码请加博主微信进行购买,微信号:13248254750

一:k8s将node节点加入到master报错信息如下

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     阅读(743)

名师出品,必属精品    https://www.91mszl.com

联系博主    
用户登录遮罩层
x

账号登录

91名师指路-底部