Last active
November 2, 2021 10:29
-
-
Save chadmcrowell/a4cfd7678f2d00fdb5de436f9a62c717 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 cp -i /etc/kubernetes/admin.conf $HOME/.kube/config | |
sudo chown $(id -u):$(id -g) $HOME/.kube/config | |
# 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
You must take note of the output and use the specific
kubeadm join ...
command to join the worker nodes to the cluster and run it assudo