k3s: Add missing IP Virtual Server (ip_vs) feature to the kernel config
PATCH 1/1 k3s: Add missing IP Virtual Server (ip_vs) feature to the kernel config
K3s (and Kubernetes) supports load balancing via IPVS, and by default reports errors when IPVS kernel modules cannot be loaded.
This patch adds the missing reported kernel modules to the k3s recipe, and orders the kernel module list alphabetically:
* ip-vs
* ip-vs-rr
* ip-vs-wrr
* ip-vs-sh
The modules are configured by including the ip_vs kernel feature.
--- recipes-containers/k3s/k3s_git.bb | 22 +++++++++++-------- .../linux/linux-yocto/kubernetes.scc | 1 + 2 files changed, 14 insertions(+), 9 deletions(-)
recipes-containers/k3s/k3s_git.bb +13 -9
@@ -2690,20 +2690,24 @@ RDEPENDS:${PN}-server = "${PN}" RDEPENDS:${PN}-agent = "${PN}" RRECOMMENDS:${PN} = "\ + kernel-module-ip-vs \ + kernel-module-ip-vs-rr \ + kernel-module-ip-vs-sh \ + kernel-module-ip-vs-wrr \ + kernel-module-nfnetlink-log \ + kernel-module-vxlan \ kernel-module-xt-addrtype \ - kernel-module-xt-nat \ - kernel-module-xt-multiport \ - kernel-module-xt-conntrack \ kernel-module-xt-comment \ - kernel-module-xt-mark \ kernel-module-xt-connmark \ - kernel-module-vxlan \ + kernel-module-xt-conntrack \ + kernel-module-xt-limit \ + kernel-module-xt-mark \ kernel-module-xt-masquerade \ - kernel-module-xt-statistic \ - kernel-module-xt-physdev \ + kernel-module-xt-multiport \ + kernel-module-xt-nat \ kernel-module-xt-nflog \ - kernel-module-xt-limit \ - kernel-module-nfnetlink-log \ + kernel-module-xt-physdev \ + kernel-module-xt-statistic \ " RCONFLICTS:${PN} = "kubectl"
recipes-kernel/linux/linux-yocto/kubernetes.scc +1 -0
@@ -1,2 +1,3 @@ include docker.scc +include cgl/cfg/net/ip_vs.scc kconf non-hardware kubernetes.cfg
--
2.25.1
Quoted 6 lines · Richard Neill
K3s (and Kubernetes) supports load balancing via IPVS, and by default reports errors when IPVS kernel modules cannot be loaded.
This patch adds the missing reported kernel modules to the k3s recipe, and orders the kernel module list alphabetically:
I'd actually prefer that the list not be sorted, at the same time as we are adding to it.
Can you re-submit with just the new kernel module recommendations added.
Bruce
Quoted 72 lines
* ip-vs
* ip-vs-rr
* ip-vs-wrr
* ip-vs-shThe modules are configured by including the
ip_vskernel feature.Signed-off-by Richard Neill <[email protected]>--- recipes-containers/k3s/k3s_git.bb | 22 +++++++++++-------- .../linux/linux-yocto/kubernetes.scc | 1 + 2 files changed, 14 insertions(+), 9 deletions(-)recipes-containers/k3s/k3s_git.bb +13
-9@@ -2690,20 +2690,24 @@ RDEPENDS:${PN}-server = "${PN}" RDEPENDS:${PN}-agent = "${PN}" RRECOMMENDS:${PN} = "\ + kernel-module-ip-vs \ + kernel-module-ip-vs-rr \ + kernel-module-ip-vs-sh \ + kernel-module-ip-vs-wrr \ + kernel-module-nfnetlink-log \ + kernel-module-vxlan \ kernel-module-xt-addrtype \ - kernel-module-xt-nat \ - kernel-module-xt-multiport \ - kernel-module-xt-conntrack \ kernel-module-xt-comment \ - kernel-module-xt-mark \ kernel-module-xt-connmark \ - kernel-module-vxlan \ + kernel-module-xt-conntrack \ + kernel-module-xt-limit \ + kernel-module-xt-mark \ kernel-module-xt-masquerade \ - kernel-module-xt-statistic \ - kernel-module-xt-physdev \ + kernel-module-xt-multiport \ + kernel-module-xt-nat \ kernel-module-xt-nflog \ - kernel-module-xt-limit \ - kernel-module-nfnetlink-log \ + kernel-module-xt-physdev \ + kernel-module-xt-statistic \ " RCONFLICTS:${PN} = "kubectl"recipes-kernel/linux/linux-yocto/kubernetes.scc +1
-1@@ -1,2 +1,3 @@ include docker.scc +include cgl/cfg/net/ip_vs.scc kconf non-hardware kubernetes.cfg --2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7165): https://lists.yoctoproject.org/g/meta-virtualization/message/7165
Mute This Topic: https://lists.yoctoproject.org/mt/90436886/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Hi Bruce,
OK, no problem, I will send an updated patch
Richard
________________________________
From: Bruce Ashfield <[email protected]>
Sent: Thursday, April 14, 2022 4:14 AM
To: Richard Neill <[email protected]>
Cc: [email protected] <[email protected]>; nd <[email protected]>
Subject: Re: [meta-virtualization] [PATCH] k3s: Add missing IP Virtual Server (ip_vs) feature to the kernel config
Quoted 6 lines · Richard Neill
K3s (and Kubernetes) supports load balancing via IPVS, and by default reports errors when IPVS kernel modules cannot be loaded.
This patch adds the missing reported kernel modules to the k3s recipe, and orders the kernel module list alphabetically:
I'd actually prefer that the list not be sorted, at the same time as we are adding to it.
Can you re-submit with just the new kernel module recommendations added.
Bruce
Quoted 64 lines
* ip-vs
* ip-vs-rr
* ip-vs-wrr
* ip-vs-shThe modules are configured by including the
ip_vskernel feature.Signed-off-by Richard Neill <[email protected]>--- recipes-containers/k3s/k3s_git.bb | 22 +++++++++++-------- .../linux/linux-yocto/kubernetes.scc | 1 + 2 files changed, 14 insertions(+), 9 deletions(-)recipes-containers/k3s/k3s_git.bb +13
-9@@ -2690,20 +2690,24 @@ RDEPENDS:${PN}-server = "${PN}" RDEPENDS:${PN}-agent = "${PN}" RRECOMMENDS:${PN} = "\ + kernel-module-ip-vs \ + kernel-module-ip-vs-rr \ + kernel-module-ip-vs-sh \ + kernel-module-ip-vs-wrr \ + kernel-module-nfnetlink-log \ + kernel-module-vxlan \ kernel-module-xt-addrtype \ - kernel-module-xt-nat \ - kernel-module-xt-multiport \ - kernel-module-xt-conntrack \ kernel-module-xt-comment \ - kernel-module-xt-mark \ kernel-module-xt-connmark \ - kernel-module-vxlan \ + kernel-module-xt-conntrack \ + kernel-module-xt-limit \ + kernel-module-xt-mark \ kernel-module-xt-masquerade \ - kernel-module-xt-statistic \ - kernel-module-xt-physdev \ + kernel-module-xt-multiport \ + kernel-module-xt-nat \ kernel-module-xt-nflog \ - kernel-module-xt-limit \ - kernel-module-nfnetlink-log \ + kernel-module-xt-physdev \ + kernel-module-xt-statistic \ " RCONFLICTS:${PN} = "kubectl"recipes-kernel/linux/linux-yocto/kubernetes.scc +1
-1@@ -1,2 +1,3 @@ include docker.scc +include cgl/cfg/net/ip_vs.scc kconf non-hardware kubernetes.cfg --2.25.1
Quoted 8 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7165): https://lists.yoctoproject.org/g/meta-virtualization/message/7165
Mute This Topic: https://lists.yoctoproject.org/mt/90436886/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II