緣由:用騰訊雲服務器作爲kubernets的master初始化後會得到內網IP,我這裏將騰訊雲服務器作爲邊緣節點解決問題。
但是還是出現超時的問題。
解決方案:
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
最後連接成功!