Update README.md
This commit is contained in:
parent
10b97a6fa1
commit
239439e97e
10
README.md
10
README.md
@ -163,18 +163,26 @@ sudo apt-get -y install socat conntrack
|
|||||||
|
|
||||||
### 7. Cluster on Master node
|
### 7. Cluster on Master node
|
||||||
```shell
|
```shell
|
||||||
sudo kubeadm init
|
sudo kubeadm init --pod-network-cidr 172.16.1.0/24
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
mkdir -p $HOME/.kube
|
mkdir -p $HOME/.kube
|
||||||
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
|
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
|
||||||
sudo chown $(id -u):$(id -g) $HOME/.kube/config
|
sudo chown $(id -u):$(id -g) $HOME/.kube/config
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Cluster Netowrk with Flannel
|
||||||
```shell
|
```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/kube-flannel.yml
|
||||||
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.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
|
#### Kubernetes Dashboard
|
||||||
```shell
|
```shell
|
||||||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.3.1/aio/deploy/recommended.yaml
|
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.3.1/aio/deploy/recommended.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user