[root@master ~]# kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:47:53Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}
[root@master ~]#
kubeadm init --kubernetes-version=1.19.3 \
--apiserver-advertise-address=192.168.137.200 \
--image-repository registry.aliyuncs.com/google_containers \
--service-cidr=10.1.0.0/16 \
--pod-network-cidr=10.244.0.0/16
Then you can join any number of worker nodes by running the following on each as root:
kubeadm join 192.168.137.200:6443 --token zmroq9.sj90o2p7dtliu98f \
--discovery-token-ca-cert-hash sha256:40ff9715b08bf0eef30d3d8e805f5d811461ddaa4d3d388ad32404ea972a5d01
[root@master ~]#
mkdir -p $HO