Update flannel_setup.sh

This commit is contained in:
Torma Kristóf 2019-04-24 13:27:21 +02:00 committed by GitHub
parent 9908615373
commit 4256a1bf35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,4 @@
#!/bin/bash #!/bin/bash
## Initialize Kubernetes
kubeadm init --ignore-preflight-errors=SystemVerification --pod-network-cidr=10.244.0.0/16
mkdir -p $HOME/.kube
cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
chown $(id -u):$(id -g) $HOME/.kube/config
## Apply Flannel CNI plugin ## Apply Flannel CNI plugin
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