无法验证节点 'raspberrypi' 的散列:散列不匹配

unable to verify hash for node 'raspberrypi': hash does not match

在 2 个 RPI 4 的集群上,当它似乎设置工作节点时我看到了这个。楼主好像还不错我现在只连接了 2 个 RPI。 我认为网络交换机没问题,但如果这是网络问题,我可能会遗漏一些东西。

我用ansible-playbook site.yml -i inventory/rpi/hosts.ini

k3s_version: v1.23.4+k3s1

此错误重复出现。 但是我看到了这个。

kubectl get nodes --kubeconfig ~/.kube/config-berry-pi
 NAME        STATUS   ROLES                  AGE     VERSION 
raspberrypi   Ready    control-plane,master   4m41s   v1.23.4+k3s1

这是来自pi大师的日志

pr 01 11:58:14 raspberrypi k3s[13742]: time="2022-04-01T11:58:14+01:00" level=error msg="unable to verify hash for node 'raspberrypi': hash does not match"
Apr 01 11:58:15 raspberrypi k3s[13742]: I0401 11:58:15.180204   13742 request.go:665] Waited for 1.053982859s due to client-side throttling, not priority and fairness, request: POST:https://127.0.0.1:6443/api/v1/namespaces/kube-system/serviceaccounts/coredns/token
Apr 01 11:58:19 raspberrypi k3s[13742]: time="2022-04-01T11:58:19+01:00" level=error msg="unable to verify hash for node 'raspberrypi': hash does not match"
Apr 01 11:58:24 raspberrypi k3s[13742]: time="2022-04-01T11:58:24+01:00" level=error msg="unable to verify hash for node 'raspberrypi': hash does not match"
Apr 01 11:58:29 raspberrypi k3s[13742]: time="2022-04-01T11:58:29+01:00" level=error msg="unable to verify hash for node 'raspberrypi': hash does not match"
Apr 01 11:58:34 raspberrypi k3s[13742]: time="2022-04-01T11:58:34+01:00" level=error msg="unable to verify hash for node 'raspberrypi': hash does not match"

我能够通过在每个工作节点上执行来继续。

sudo curl -sfL https://get.k3s.io | K3S_TOKEN="K10e9d200a500ad44ba0072af9ea9f38d19a40cfc4cfd96d753d01466c618007f8e::server:bb58186ddf5f34800004affa48c44a12" K3S_URL="https://192.168.1.29:6443" K3S_NODE_NAME="rpiworker1" sh -

这个token是从k3s服务器获取的

sudo cat /var/lib/rancher/k3s/server/token
K10e9d200a500ad44ba0072af9ea9f38d19a40cfc4cfd96d753d01466c618007f8e::server:bb58186ddf5f34800004affa48c44a12

ansible-playbook 安装了 master 但之后似乎卡住了。不过我不明白日志中出现该错误的原因。