Goals
  1. Setup a kubernetes master node on a Linux machine

Setup

Initialize the cluster on the master node

sudo kubeadm init --pod-network-cidr=10.244.0.0/16

This might take a few minutes …​ afterward we set up our 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

Verify the Cluster Setup

Shows that the cluster is responding and kubectl working:

kubectl version