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 -h
  • At least 2 CPU

lscpu | less

Configure node environment

Host configuration

Set up hostname as master1 (optional name)

sudo hostnamectl set-hostname master1

Verify Host details

hostnamectl

Retrieve host IP address

hostname -I

Append the ip and hostname into /etc/hosts file

Network configuration

Enable IPVS modules

Install required package

Create a config file for loading modules automatically at boot time.

Manually load the modules immediately

Enable 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

Since the default config.toml file contains only a partial configuration of containerd, we need to export the full list of settings for further overrides.

Backup the original containerd configuration file.

Export the default setting of containerd configuration

To configure the systemd as cgroup driver

Update the version of sandbox (pause) image

Restart and enable containerd service

Last updated

Was this helpful?