Skip to content

Install Master Node

Alexander Diemand edited this page Jan 1, 2024 · 1 revision

The tool kubeadm takes care of setting up all required cryptographic certificates and preparing the node to function as the control plane:

  1. kubeadm init --pod-network-cidr=10.244.0.0/16 --cri-socket "unix:///var/run/containerd/containerd.sock"

    • we want all our pods to be in this network address range (required by Flannel)

    • we point it to our local containerd socket

  2. installation of Flannel as our Container Network Interface (CNI):

    • kubectl apply -f https://github.com/flannel-io/flannel/releases/latest/download/kube-flannel.yml
image
  • in any case, if you want to redo the installation:

    • kubeadm reset will tear down the setup of the node
  • normally, no pods are scheduled on the master node, but this can be changed:

    • kubectl taint nodes --all node-role.kubernetes.io/control-plane-

      (not sure if this is really a good idea though)

Clone this wiki locally