commit:     c980ee7420ff4d06d6a524d47ca13e7c7ac4fbd2
Author:     Bjoern Michaelsen <bjoern.michaelsen <AT> libreoffice <DOT> org>
AuthorDate: Mon May 10 05:31:03 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon May 10 05:57:23 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c980ee74

sys-cluster/k3s: add some basic kernel config dependency checks

k3s depends on lots of kernel configuration and k3s/containerd arent
exactly very helpful with error messages, if the kernel is missing
needed features. The attached patch will provide a set of configs
needed for k3s to run.
The list might be incomplete, but it is a start.

Steps to reproduce:
1. emerge k3s ebuild
2. start k3s on a kernel missing the listed config

expected behavior:
k3s runs or warns about missing kernel features.

actual behavior:
k3s fails in various ways (sometimes later: not able to set up
network or starting containers) and provides error messages
that do not directly hint at kernel configuration amiss.

Closes: https://bugs.gentoo.org/788991
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 sys-cluster/k3s/k3s-1.19.10-r1.ebuild | 3 ++-
 sys-cluster/k3s/k3s-1.20.6.ebuild     | 3 ++-
 sys-cluster/k3s/k3s-1.21.0.ebuild     | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/sys-cluster/k3s/k3s-1.19.10-r1.ebuild 
b/sys-cluster/k3s/k3s-1.19.10-r1.ebuild
index 07f6eb69c83..e5942a697cb 100644
--- a/sys-cluster/k3s/k3s-1.19.10-r1.ebuild
+++ b/sys-cluster/k3s/k3s-1.19.10-r1.ebuild
@@ -2,13 +2,14 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit go-module systemd
+inherit go-module linux-info systemd
 
 DESCRIPTION="Lightweight Kubernetes"
 HOMEPAGE="https://k3s.io";
 K3S_ROOT_VERSION=0.6.0-rc3
 K3S_TRAEFIK_VERSION=1.81.0
 K3S_CNIPLUGINS_VERSION=0.8.6
+CONFIG_CHECK="~BRIDGE_NETFILTER ~CFS_BANDWIDTH ~CGROUP_DEVICE ~CGROUP_PERF 
~CGROUP_PIDS ~IP_VS ~MEMCG ~NETFILTER_XT_MATCH_COMMENT ~OVERLAY_FS ~VLAN ~VXLAN"
 
 EGO_SUM=(
 "bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898"

diff --git a/sys-cluster/k3s/k3s-1.20.6.ebuild 
b/sys-cluster/k3s/k3s-1.20.6.ebuild
index 6cbd318a7c8..a2e4b10c09a 100644
--- a/sys-cluster/k3s/k3s-1.20.6.ebuild
+++ b/sys-cluster/k3s/k3s-1.20.6.ebuild
@@ -2,13 +2,14 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit go-module systemd
+inherit go-module linux-info systemd
 
 DESCRIPTION="Lightweight Kubernetes"
 HOMEPAGE="https://k3s.io";
 K3S_ROOT_VERSION=0.8.1
 K3S_TRAEFIK_VERSION=1.81.0
 K3S_CNIPLUGINS_VERSION=0.8.6
+CONFIG_CHECK="~BRIDGE_NETFILTER ~CFS_BANDWIDTH ~CGROUP_DEVICE ~CGROUP_PERF 
~CGROUP_PIDS ~IP_VS ~MEMCG ~NETFILTER_XT_MATCH_COMMENT ~OVERLAY_FS ~VLAN ~VXLAN"
 
 EGO_SUM=(
 "bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898"

diff --git a/sys-cluster/k3s/k3s-1.21.0.ebuild 
b/sys-cluster/k3s/k3s-1.21.0.ebuild
index 4b4f13bbf01..f6d024ad125 100644
--- a/sys-cluster/k3s/k3s-1.21.0.ebuild
+++ b/sys-cluster/k3s/k3s-1.21.0.ebuild
@@ -2,13 +2,14 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit go-module systemd
+inherit go-module linux-info systemd
 
 DESCRIPTION="Lightweight Kubernetes"
 HOMEPAGE="https://k3s.io";
 K3S_ROOT_VERSION=0.8.1
 K3S_TRAEFIK_VERSION=9.18.2
 K3S_CNIPLUGINS_VERSION=0.8.6
+CONFIG_CHECK="~BRIDGE_NETFILTER ~CFS_BANDWIDTH ~CGROUP_DEVICE ~CGROUP_PERF 
~CGROUP_PIDS ~IP_VS ~MEMCG ~NETFILTER_XT_MATCH_COMMENT ~OVERLAY_FS ~VLAN ~VXLAN"
 
 EGO_SUM=(
 "bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898"

Reply via email to