This commit is contained in:
Sambo Chea 2021-10-12 18:06:49 +07:00
commit dcb72f7b52
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490

View File

@ -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
@ -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