执行 kubeadm join报如下错误:
error execution phase preflight: couldn't validate the identity of the API Server: abort connecting to API servers after timeout of 5m0s
出现该问题可能有多种原因:
1. token 过期
此时需要通过 kubedam 重新生成 token
kubeadm token create --print-join-command2. k8s api server 不可达
笔者遇到的正是这种情况,此时需要检查和关闭节点的 firewalld 和 selinux
setenforce 0
sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config
systemctl disable firewalld --now
版权声明:本文为shida_csdn原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。