kubeadm join 超时 uploading crisocket: timed out waiting for the condition


kubeadm join 192.168.220.128:6443 --token somttu.2cxum2mi9eo9djkt --discovery-token-ca-cert-hash sha256:a2bab2a96f6fc328f764e5454e52f4bf98723f6113861ecefa0e2ec57684cc2f --ignore-preflight-errors=all
 

[kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap...
[kubelet-check] Initial timeout of 40s passed.

然后就是超时报错

 uploading crisocket: timed out waiting for the condition

 

在 stackoverflow上找到一个方案尝试了一下解决了问题

 

https://stackoverflow.com/questions/53525975/kubernetes-error-uploading-crisocket-timed-out-waiting-for-the-condition

 

执行如下命令

 

swapoff -a    # will turn off the swap 
kubeadm reset
systemctl daemon-reload
systemctl restart kubelet
iptables -F && iptables -t nat -F && iptables -t mangle -F && iptables -X  # will reset iptables

 

你可能感兴趣的:(各种问题)