Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] kernel options to allow Kubernetes K3s #6098

Closed
mossroy opened this issue Jan 8, 2022 · 1 comment
Closed

[Feature request] kernel options to allow Kubernetes K3s #6098

mossroy opened this issue Jan 8, 2022 · 1 comment
Labels

Comments

@mossroy
Copy link

mossroy commented Jan 8, 2022

As Docker is already available on LibreELEC (through the add-on), I investigated if it was possible to run k3s (lightweight Kubernetes distribution).
My intention is to make my LibreELEC machine part of a self-hosted k3s cluster. It would take advantage of the power and capabilities of the machine to run some self-hosted services.

I managed to make it run (currently with some dirty hacks). See k3s-io/k3s#4859

But I had to recompile LibreELEC, after adding several kernel options, on branch libreelec-10.0.

Here are the needed kernel options :

  • CONFIG_CGROUP_PIDS
  • CONFIG_USER_NS
  • CONFIG_NETFILTER_XT_MARK
  • CONFIG_NETFILTER_XT_CONNMARK
  • CONFIG_NETFILTER_XT_TARGET_CONNMARK
  • CONFIG_NETFILTER_XT_TARGET_MARK
  • CONFIG_NETFILTER_XT_TARGET_NFLOG
  • CONFIG_NETFILTER_XT_MATCH_COMMENT
  • CONFIG_NETFILTER_XT_MATCH_LIMIT
  • CONFIG_NETFILTER_XT_MATCH_MARK
  • CONFIG_NETFILTER_XT_MATCH_MULTIPORT
  • CONFIG_NETFILTER_XT_MATCH_PHYSDEV
  • CONFIG_NETFILTER_XT_MATCH_STATISTIC
  • CONFIG_IP_SET
  • CONFIG_IP_VS
  • CONFIG_IP_VS_RR
  • CONFIG_IP_VS_WRR
  • CONFIG_IP_VS_SH
  • CONFIG_BRIDGE_VLAN_FILTERING
  • CONFIG_VXLAN

I also had to workaround the fact that the root filesystem is a read-only squashfs, but I understand it's certainly by design to allow easier upgrades of LE.

NB : I did that on an amd64 machine, but it would probably work on most other architectures too : k3s also supports armhf and arm64

@heitbaum heitbaum changed the title [Feature request] Add kernel options to allow k3s to run [Feature request] kernel options to allow Kubernetes K3s Jan 9, 2022
@chewitt
Copy link
Member

chewitt commented Jan 9, 2022

Closing as per comment here #6100 (comment)

@chewitt chewitt closed this as completed Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants