报错信息:
[root@localhost ~]# kubeadm join 192.168.1.112:6443 --token kkj95v.77am3u1k3q4b4qc3 --discovery-token-ca-cert-hash sha256:5ea87ae5440baa0412acca4fa7d0c650677b37519f57765eed13b9df88c3b2be
W0609 12:29:34.712472 40758 join.go:346] [preflight] WARNING: JoinControlPane.controlPlane settings will be i
[preflight] Running pre-flight checksgnored when control-plane flag is not set.
[preflight] Reading configuration from the cluster...
error execution phase preflight: [preflight] Some fatal errors occurred:
[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
原因:
之前已经加入过一次
解决办法:
重置后重新加入(node节点执行)
[root@k8s-node01 k8s_images]# kubeadm reset
[reset] WARNING: Changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.
[reset] Are you sure you want to proceed? [y/N]: y
所有评论(0)