Post

Kubernetes

Commands

kubeadm
the command to bootstrap the cluster.

kubelet
the component that runs on all of the machines in your cluster and does things like starting pods and containers.

kubectl
the command line util to talk to your cluster.

Warning: kubeadm will not install or manage kubelet or kubectl for you, so you will need to ensure they match the version of the Kubernetes control plane you want kubeadm to install for you.

Configuring a cgroup driver

Both the container runtime and the kubelet have a property called “cgroup driver”, which is important for the management of cgroups on Linux machines. Matching the container runtime and kubelet cgroup drivers is required or otherwise the kubelet process will fail. This needs to be done on all machines that will be interacting with the cluster.

In the /etc/docker/daemon.json file, add "exec-opts": ["native.cgroupdriver=systemd"] then restart docker.

This post is licensed under CC BY 4.0 by the author.