From 4e8f33a82f6d198e8f1fa746aba8a2782a68df85 Mon Sep 17 00:00:00 2001 From: Sambo Chea <7059827+sombochea@users.noreply.github.com> Date: Tue, 12 Oct 2021 15:31:15 +0700 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a7dca6..c87fb3b 100644 --- a/README.md +++ b/README.md @@ -163,7 +163,7 @@ sudo systemctl restart containerd ### 7. Cluster on Master node ```shell -sudo kubeadm init --pod-network-cidr 172.16.1.0/24 +sudo kubeadm init --pod-network-cidr 10.16.1.0/8 ``` ```shell From af7b66227ceb4a1d74d9f4dd7af1dce6641f7641 Mon Sep 17 00:00:00 2001 From: Sambo Chea <7059827+sombochea@users.noreply.github.com> Date: Tue, 12 Oct 2021 15:33:30 +0700 Subject: [PATCH 2/2] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index c87fb3b..f57e515 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,11 @@ sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config ``` +##### OR Join Cluster +```shell +sudo kubeadm join ip-api-server:6443 --token $TOKEN --discovery-token-ca-cert-hash $DISCOVERY_HASH +``` + #### Cluster Netowrk with Flannel ```shell kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml