Forked from chadmcrowell/k8s-install-master-node.sh
Last active
September 27, 2020 15:46
-
-
Save srault95/05ad2bf79d3fcab27046f0366326a03c to your computer and use it in GitHub Desktop.
Installing Kubernetes - CKA Course - Linux Academy
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
| # Initialize the cluster | |
| sudo kubeadm init --pod-network-cidr=10.244.0.0/16 | |
| # Set up local kubeconfig | |
| mkdir -p $HOME/.kube | |
| sudo cat /etc/kubernetes/admin.conf > $HOME/.kube/config | |
| chmod 600 $HOME/.kube/config | |
| kubectl version | |
| # Apply Calco CNI | |
| kubectl apply -f https://docs.projectcalico.org/v3.14/manifests/calico.yaml | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment