Merge branch 'main' of https://github.com/sombochea/kubernetes-installation into main
This commit is contained in:
commit
dcb72f7b52
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user