Update README.md

This commit is contained in:
Sambo Chea 2021-10-09 20:40:15 +07:00 committed by GitHub
parent 10b97a6fa1
commit 239439e97e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,18 +163,26 @@ sudo apt-get -y install socat conntrack
### 7. Cluster on Master node
```shell
sudo kubeadm init
sudo kubeadm init --pod-network-cidr 172.16.1.0/24
```
```shell
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
```
#### Cluster Netowrk with Flannel
```shell
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml
```
#### Cluster Network with Calico
```shell
kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
```
#### Kubernetes Dashboard
```shell
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.3.1/aio/deploy/recommended.yaml