Installing Kubernetes on LXC

21/November/2025 kubernetesk8slxc

Kubernetes on LXC 1000x1040 kubernetes-on-lxc.png
Kubernetes on LXC

This example shows an installation over LXC, while for any more or less serious use this is completely unacceptable and requires using KVM with additional security measures.
And besides, installation on KVM will be much, much easier.
LXC does not provide adequate security because, for proper operation, it requires mounting the /sys and /proc partitions from the host, which are accessible to all LXC instances.
Furthermore, this example requires using a PRIVILEGED virtual machine.
However, LXC allows relatively easy setting up a testing infrastructure without the overhead associated with KVM.
So some aspects in this example will only be related to the setup in LXC.


On the HOST system

First, let’s make preparations on the host system.

nano /etc/modules

1
2
3
4
5
6
7
8
9
10
11
overlay
nf_nat
br_netfilter
xt_conntrack
rbd
fuse
ip_vs
ip_vs_rr
ip_vs_wrr
ip_vs_sh
iptable_nat

nano /etc/sysctl.d/35-lxc-kubernetes.conf

1
2
3
4
5
6
7
8
9
10
11
kernel.dmesg_restrict = 0
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
net.bridge.bridge-nf-call-iptables = 1
# --conntrack-max-per-core Default: 32768 * N
net.netfilter.nf_conntrack_max=131072
# net.bridge.bridge-nf-call-arptables
# kernel.pid_max=100000
# user.max_user_namespaces=15000
vm.compact_memory = 1
vm.overcommit_memory = 1
Installing Kubernetes on...

The root of all electronics problems

8/November/2025 repairdyson

Dyson v12 turbine and main PCB 5504x3096 IMG_20251108_125522.jpg
Dyson v12 turbine and main PCB
The root of...

New toys

1/November/2025 meshtasticLiteVNA64

LiteVNA 64 4032x3024 LiteVNA_64.jpg
LiteVNA 64
New toys

ZBook Fury - Inspection and cleaning after the previous owner

15/October/2025 zbook

HP ZBook Fury 3700x2500 IMG_20251117_113619.jpg
HP ZBook Fury


Initial inspection of the laptop

Back cover removed
Back cover removed 5504x3096
IMG_20250926_195141.jpg
Back cover removed
Back cover removed 5504x3096
IMG_20250926_195148.jpg
Secondary RAM modules
Secondary RAM modules 5504x3096
IMG_20250926_210744.jpg
ZBook Fury -...

Installing thermal pads on SSD Samsung 870

12/October/2025 870evo

Checking the thickness of thermal pads ARCTIC TP-3 5504x3096 870_20251008_155721.jpg
Checking the thickness of thermal pads ARCTIC TP-3


Testing the thickness of thermal pads for SSD chips.

Installing thermal pads...
Page 3 from 13