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:

    * ip-vs
    * ip-vs-rr
    * ip-vs-wrr
    * ip-vs-sh

The modules are configured by including the ip_vs kernel feature.

Signed-off-by: Richard Neill <richard.neill@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Richard Neill 2022-04-14 11:17:12 +01:00 committed by Bruce Ashfield
parent e02f0d3391
commit 6ed391fdb0
2 changed files with 5 additions and 0 deletions

View File

@ -2704,6 +2704,10 @@ RRECOMMENDS:${PN} = "\
kernel-module-xt-nflog \
kernel-module-xt-limit \
kernel-module-nfnetlink-log \
kernel-module-ip-vs \
kernel-module-ip-vs-rr \
kernel-module-ip-vs-sh \
kernel-module-ip-vs-wrr \
"
RCONFLICTS:${PN} = "kubectl"

View File

@ -1,2 +1,3 @@
include docker.scc
include cgl/cfg/net/ip_vs.scc
kconf non-hardware kubernetes.cfg