Skip to content

Instantly share code, notes, and snippets.

@chadmcrowell
Last active November 2, 2021 10:29
Show Gist options
  • Save chadmcrowell/a4cfd7678f2d00fdb5de436f9a62c717 to your computer and use it in GitHub Desktop.
Save chadmcrowell/a4cfd7678f2d00fdb5de436f9a62c717 to your computer and use it in GitHub Desktop.
Installing Kubernetes - CKA Course - Linux Academy
# 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
@KajKandler
Copy link

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 as sudo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment