kubeadm新加nodeノードエラーthere is no JWS signed token in the cluster-info ConfigMap

801 ワード

昨日作ったクラスタは、今日新しいノードを追加したいときにコマンドを実行してエラーを報告します.
kubeadm join --token c1d408.5b9a43bfa2926ddc 192.168.0.232:6443 --discovery-token-ca-cert-hash sha256:66906568e7ca6aafa86cd1e6e1d0dc60721aae8b08f5daff347f6a380e81fd4a
#    
Failed to connect to API Server "192.168.0.240:6443": there is no JWS signed token in the cluster-info ConfigMap. This token id "c1d408" is invalid for this cluster, can't connect

理由公式には安全のため、tokenを初期化すると24時間でmasterに削除されると言われていますが、
解決策masterノードで再生成
kubeadm token create

クライアント再加入
kubeadm join --token c1d408.5b9a43bfa2926ddc 192.168.0.232:6443 --discovery-token-ca-cert-hash sha256:66906568e7ca6aafa86cd1e6e1d0dc60721aae8b08f5daff347f6a380e81fd4a