Kubernetes
Create a cluster
From the VM template, clone at least one VM for a controller and one for a worker node
Select mode “Full clone”
Controller node should at least have 2 cores and 2G of memory
Worker nodes should at least have 2 cores and 1G of memory (pref. 2G memory is better)
Resize each VM disk size to eg. 20G for installing additional components
Select "Start at boot" (optionally)
For each node:
Start the new VM and wait till cloud-init has finished completely
Login with credentials from template
Run “ip a” to check network connectivity
Run “sudo apt install -y qemu-guest-agent”
Reboot VM
Install container runtime (on each node)
Edit config.toml file and look for line “SystemdCgroup = false”
Change setting to “true”
Disable swap memory (if needed)
Comment line in /etc/fstab
Configure network and kernel modules
Edit /etc/sysctl.conf
Look for line “net.ipv4.ip_forward=1” and uncomment it
(Optionally) do similar for ipv6
Edit /etc/modules-load.d/k8s.conf
Enter line “br_netfilter” and line "overlay"
Install Kubernetes binaries
Specifics for the control plane nodes
To start a new control plane, execute below command:
Note that the token expires. To create a new one, execute: