Help me install k8s into LXC container

thinh.codeunited

New Member
Jun 18, 2024
2
2
1
I got error when trying `sudo kubeadm init --pod-network-cidr=192.168.0.0/16`

Code:
error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR SystemVerification]: failed to parse kernel config: unable to load kernel module: "configs", output: "modprobe: FATAL: Module configs not found in directory /lib/modules/5.15.102-1-pve\n", err: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher

Someone help me please...
 

Attachments

  • Screenshot 2024-06-18 114208.png
    Screenshot 2024-06-18 114208.png
    34.8 KB · Views: 6
  • Like
Reactions: cryptocharlie
Hi,

IIRC esp. kubernetes requires certain kernel modules to be loaded - but as CTs share the kernel with the host, that means they would have to be loaded on the host first or break isolation.

Please not that CTs are simply not suited for such usage and a VM is recommended, just like with Docker. See also our documentation on the Proxmox Container Toolkit.
 
Thanks, I have used VM and it works,
Great!

Please just mark the thread as SOLVED by editing the first post - there should be a dropdown near the title field. This helps others find this post more easily in the future :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!