CentOS Stream 10

Kubernetes : Install Kubeadm2026/08/07

 

Configure Multi Nodes Kubernetes Cluster.

This example is based on the environment like follows.

For System requirements, each Node has unique Hostname, MAC address, Product_uuid.
MAC address and Product_uuid are generally already unique one if you installed OS on physical machine or virtual machine with common procedure.
You can see Product_uuid with the command [dmidecode -s system-uuid].

+----------------------+   +----------------------+
|  [ ctrl.srv.world ]  |   |   [ dlp.srv.world ]  |
|     Manager Node     |   |     Control Plane    |
+-----------+----------+   +-----------+----------+
        eth0|10.0.0.25             eth0|10.0.0.30
            |                          |
------------+--------------------------+-----------
            |                          |
        eth0|10.0.0.51             eth0|10.0.0.52
+-----------+----------+   +-----------+----------+
| [ node01.srv.world ] |   | [ node02.srv.world ] |
|     Worker Node#1    |   |     Worker Node#2    |
+----------------------+   +----------------------+

[1] On all Kubernetes Cluster Nodes except Manager Node, Change settings for System requirements.
[root@dlp ~]#
cat > /etc/sysctl.d/99-k8s-cri.conf <<EOF
net.bridge.bridge-nf-call-iptables=1
net.ipv4.ip_forward=1
net.bridge.bridge-nf-call-ip6tables=1
EOF

[root@dlp ~]#
sysctl --system
# disable firewalld

[root@dlp ~]#
systemctl disable --now firewalld
# set Swap off setting

[root@dlp ~]#
swapoff -a

[root@dlp ~]#
vi /etc/fstab
# comment out the Swap line
#UUID=eb7c7852-4114-4c8d-8eef-b176c28b5501 none                    swap    defaults        0 0
[2] On all Kubernetes Cluster Nodes except Manager Node, Install required packages.
This example shows to use CRI-O for container runtime.
[root@dlp ~]#
dnf -y install https://mirror.stream.centos.org/SIGs/10-stream/cloud/x86_64/okd-5.0/Packages/c/cri-o-1.36.2-1.el10s.x86_64.rpm
[root@dlp ~]#
vi /etc/crio/crio.conf
[crio.image]
# line 591 : add the line
pause_image = "registry.k8s.io/pause:3.10.2"

[root@dlp ~]# cat <<'EOF' > /etc/containers/policy.json
{
  "default": [
    {
      "type": "insecureAcceptAnything"
    }
  ]
}
EOF

[root@dlp ~]#
systemctl enable --now crio
[root@dlp ~]#
cat <<'EOF' > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://pkgs.k8s.io/core:/stable:/v1.36/rpm/
enabled=0
gpgcheck=1
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.36/rpm/repodata/repomd.xml.key
EOF

[root@dlp ~]#
dnf --enablerepo=kubernetes -y install kubeadm kubelet cri-tools iproute-tc container-selinux
[root@dlp ~]#
systemctl enable kubelet
Matched Content