查看discovery-token-ca-cert-hash
root@ubuntu:/home/cong# openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex | sed ‘s/^.* //’
af9e070ea723dd2281c2ae2414c932832a012d40bc55dc9c747bb00e68602388

查看token:
kubeadm token list

节点加入集群:
kubeadm join 192.168.29.137:6443 --token 5w6qwh.8n0ektfrjdct3ib4 --discovery-token-ca-cert-hash sha256:af9e070ea723dd2281c2ae2414c932832a012d40bc55dc9c747bb00e68602388

参考博客:
https://blog.csdn.net/wucong60/article/details/81455495

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐