K8s 新增节点
作者:互联网
#新增node
kubeadm token create --print-join-command
kubeadm join 11.0.1.111:6443 --token 3g9iab.rwdnd8dikfujqmus --discovery-token-ca-cert-hash sha256:8d414b0c9c6db0e4f5ac9e0a37f0fb7d21c6318fa07927efd60914b4f0d27b95
新增master,master节点执行:
root@master01:~# kubeadm init phase upload-certs --upload-certs
I0829 07:48:04.751843 5712 version.go:255] remote version is much newer: v1.25.0; falling back to: stable-1.24
[upload-certs] Storing the certificates in Secret "kubeadm-certs" in the "kube-system" Namespace
[upload-certs] Using certificate key:
d62eed06088e3f626f3505d936bab90cdb56b33fee817794ffcab64f83e3f275
kubeadm join 11.0.1.111:6443 --token 3g9iab.rwdnd8dikfujqmus --discovery-token-ca-cert-hash sha256:8d414b0c9c6db0e4f5ac9e0a37f0fb7d21c6318fa07927efd60914b4f0d27b95
--control-plane
--certificate-key d62eed06088e3f626f3505d936bab90cdb56b33fee817794ffcab64f83e3f275
标签:join,--,新增,upload,token,certs,kubeadm,K8s,节点 来源: https://www.cnblogs.com/52shaidan/p/16634693.html