Last active
July 12, 2018 06:01
-
-
Save joshy91/4bd9d8b58f2d498e3514ef8562e96aaa to your computer and use it in GitHub Desktop.
Initiate Kubernetes Master using flannel for CNI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Initiate Kubernetes Master using flannel for CNI | |
#Run command as regular user | |
sudo kubeadm init --pod-network-cidr=10.244.0.0/16 | |
mkdir -p $HOME/.kube | |
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config | |
sudo chown $(id -u):$(id -g) $HOME/.kube/config | |
#Install and start flannel for CNI on pods | |
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/v0.9.1/Documentation/kube-flannel.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment