From 90a6efc2ac1301cb83c69870f1aed46794786f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Tich=C3=A1k?= Date: Thu, 20 Aug 2026 23:17:24 +0200 Subject: [PATCH] [control-operator] rudimentary description how to create our current lab k8s --- docs/lab-k8s-install.md | 253 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 253 insertions(+) create mode 100644 docs/lab-k8s-install.md diff --git a/docs/lab-k8s-install.md b/docs/lab-k8s-install.md new file mode 100644 index 00000000..d0976da1 --- /dev/null +++ b/docs/lab-k8s-install.md @@ -0,0 +1,253 @@ +This document describes k8s installation on our virtual nodes: +`alio2-bld4-mx-k8s[01..05].cern.ch`. Node `k8s01` was chosen as a control-plane and the rest as worker nodes. These VMs have RHEL 10 installed. + +Author first created his own user so the commands used won't be in history of `root` +`alio2-bld4-mx-k8s01.cern.ch` was chosen as a control plane node and the rest as workers + +## kubeadm/kubelet/kubectl installation + +[kubeadm/kubelet/kubectl rhel guide](https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#installing-kubeadm-kubelet-and-kubectl) + +- Disable SElinux + +One important thing is that SE linux needs to be disabled until SElinux is better supported in kubelet +It is possible to install kubeadm/cluster with SE enabled, but for now I chose to follow guide to the t. + +``` +sudo setenforce 0 +sudo sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config +``` + +- Verify all required kernel modules are loaded + +RHEL 10 can have problems with having all required kernel modules, you can check: +``` +lsmod | grep -E 'overlay|br_netfilter|nf_conntrack' +``` +if there is module not loaded you can try to load it with +``` +sudo modprobe br_netfliter +``` +if you get error that the module is missing: +``` +sudo dnf install -y kernel-modules-extra +``` +load all modules now that they are there: +``` +sudo modprobe overlay +sudo modprobe br_netfilter +sudo modprobe nf_conntrack +lsmod | grep -E 'overlay|br_netfilter|nf_conntrack' +``` +make the loading persistent: +``` +cat <