kubeadm token create --print-join-command
[root@master ~]# kubeadm token create --print-join-command
W0811 11:13:51.716068 18508 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
kubeadm join 10.2.30.171:6443 --token 5hxijg.v6xmi8jqa30u6gm1 --discovery-token-ca-cert-hash sha256:c8e158dc43e8f75234b4d2e6312ab0498b596de19c81a5a8d7718a335a3579bb