Prerequisites
This document will demonstrate how to fulfill the prerequsites for kubeadm from scratch. It's meant for Linux (RHEL), but you might find similar options if you're using a different Linux distribution.
Minimum Requirements
Linux
At least 2GB RAM
free -hAt least 2 CPU
lscpu | lessConfigure node environment
Host configuration
Set up hostname as master1 (optional name)
sudo hostnamectl set-hostname master1Verify Host details
hostnamectlRetrieve host IP address
hostname -IAppend the ip and hostname into /etc/hosts file
Network configuration
Enable IPVS modules
IPVS modulesInstall required package
Create a config file for loading modules automatically at boot time.
Manually load the modules immediately
Enable br_netfilter and overlay modules
br_netfilter and overlay modules Create a config file for loading modules automatically at boot time.
Manually load the modules immediately
sysctl params required by setup, params persist across reboots
Apply sysctl params without reboot
Verify that the br_netfilter, overlay modules are loaded at runtime
Verify whether IPv4 forwarding and Bridged traffic are enabled by checking if the system variable is set to '1'
Swap configuration
Verify the usage of Swap storage on your Linux server
Disable Swap
De-activate Swap persistent across reboots
Verify whethe Swap is disabled by checking if the value is '0'
Install Docker Engine
Install the yum-utils package (which provides the yum-config-manager utility) and set up the repository.
Install Docker Engine, containerd, and Docker Compose with latest version
Start and enable docker service
Check Docker Status
Set systemd as cgroupdriver
Reload daemon
Restart docker service
Container runtimes configuration
Backup the original containerd configuration file.
Export the default setting of containerd configuration
To configure the systemd as cgroup driver
The cgroupfs driver is not recommended when systemd is the init system because systemd expects a single cgroup manager on the system.
cgroupfs driver
Configuring the systemd cgroup driver
Update the version of sandbox (pause) image
Restart and enable containerd service
Completed
Last updated
Was this helpful?