Kubernetes ---- kubeadmin join添加至集羣失敗

添加至K8S集羣過程中出現異常:

  error execution phase preflight: couldn't validate the identity of the API Server: abort connecting to API servers after timeout of 5m0s!

解決方法:

  此報錯是因爲master節點上的token過期了,需要重新生成.(最終添加至集羣成功)

[master節點操作]
~]# kubeadm token create

[node節點操作]
~]# kubeadm join 192.168.133.128:6443 --token fr84gi.8wpiw4cjxgbx4r0a     --discovery-token-ca-cert-hash sha256:520516b0ea9516f638ffdb5fdef8a50de5d0e14f1afc
1b98e6c61d20f77fc8ac --ignore-preflight-errors=Swap

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章