Created
July 1, 2019 12:32
-
-
Save bergmeister/dfb09c3a3d77ab566cd5cbcab4b8cb68 to your computer and use it in GitHub Desktop.
Configure Kubernetes Maser Node
This file contains 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/sh | |
sudo kubeadm init --pod-network-cidr=10.244.0.0/16 | |
#Set up local kubeconfig: | |
mkdir -p $HOME/.kube | |
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config | |
sudo chown $(id -u):$(id -g) $HOME/.kube/config | |
#Install Flannel networking: | |
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment