This script automates the setup process for Kubernetes on a Ubuntu 22 system using containerd as the container runtime. It installs the necessary dependencies and configures containerd according to Kubernetes requirements.
Make sure you have the following prerequisites installed on your system:
- root access
- Ubuntu 22 Linux distribution (the script is designed for Ubuntu)
- Internet connection for package downloads
- execute install-requirements.sh.
- execute init-master-k8s.sh
- execute isntall-requirements.sh
- use the output-node file (in control-plane node) to complete the kubeadm join using the string present at the end of the file.
It will look like this:
kubeadm join 172.26.0.3:6443 --token 6eaodn.fzk7sbwxqwezd2gb
--discovery-token-ca-cert-hash sha256:2d7cec2915b26a2b4869783805cc78bf82ac0437fbbd033ed0c720d044f1b140
- https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
- https://docs.tigera.io/calico/latest/getting-started/kubernetes/quickstart
- https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/install-containerd-on-ubuntu-22-04.html
- https://github.com/kubernetes/kubernetes/issues/112622 (issue for ubuntu 22, updated and set SystemdCgroup = true & sandbox_image = "registry.k8s.io/pause:3.9")