[root@k8s-master01 pack]# kubeadm token create --print-join-command
kubeadm join vip:8443 --token ltpvr8.5063mz2d5smi61hv --discovery-token-ca-cert-hash sha256:98538bed13fa10bcc98a849dd22467f43eedd09aee87aaaa1a4f39c1bd98d1cf
[root@k8s-master01 pack]# kubeadm init phase upload-certs --experimental-upload-certs
I0529 14:59:54.518136 25689 version.go:96] could not fetch a Kubernetes version from the internet: unable to get URL "https://dl.k8s.io/release/stable-1.txt": Get https://dl.k8s.io/release/stable-1.txt: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
I0529 14:59:54.518331 25689 version.go:97] falling back to the local client version: v1.14.10
[upload-certs] Storing the certificates in ConfigMap "kubeadm-certs" in the "kube-system" Namespace
[upload-certs] Using certificate key:
383c3d7433eb2ab684c2a5ee82e2dab5080ce395fbe61a176dfae6e32939a3dd
kubeadm join vip:8443 --token ltpvr8.5063mz2d5smi61hv --discovery-token-ca-cert-hash sha256:98538bed13fa10bcc98a849dd22467f43eedd09aee87aaaa1a4f39c1bd98d1cf
kubeadm join vip:8443 --token ltpvr8.5063mz2d5smi61hv --discovery-token-ca-cert-hash sha256:98538bed13fa10bcc98a849dd22467f43eedd09aee87aaaa1a4f39c1bd98d1cf --experimental-control-plane --certificate-key 383c3d7433eb2ab684c2a5ee82e2dab5080ce395fbe61a176dfae6e32939a3dd
原文:https://www.cnblogs.com/xjzyy/p/14825338.html