mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
k8s/k3s: add kernel configuration features
We already have docker and some other fragments that are relevant to k3s/k8s, but the addition of ipset as a depends for k3s highlights that we should have a reference configuration that sets all the options for proper opration and runtime dependencies. When k8s or k3s are distro features, we'll apply the new fragment to any kernel that supports fragments (and matches the supported versions). Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
913b8e51d7
commit
ba3ece52b3
19
recipes-kernel/linux/linux-yocto/kubernetes.cfg
Normal file
19
recipes-kernel/linux/linux-yocto/kubernetes.cfg
Normal file
|
@ -0,0 +1,19 @@
|
|||
CONFIG_BLK_CGROUP=y
|
||||
CONFIG_BLK_DEV_THROTTLING=y
|
||||
CONFIG_CGROUP_PERF=y
|
||||
CONFIG_CGROUP_HUGETLB=y
|
||||
CONFIG_NET_CLS_CGROUP=y
|
||||
CONFIG_CFS_BANDWIDTH=y
|
||||
CONFIG_FAIR_GROUP_SCHED=y
|
||||
CONFIG_RT_GROUP_SCHED=y
|
||||
CONFIG_IP_NF_TARGET_REDIRECT=y
|
||||
CONFIG_IP_SET=m
|
||||
CONFIG_IP_VS=y
|
||||
CONFIG_IP_VS_NFCT=y
|
||||
CONFIG_IP_VS_PROTO_TCP=y
|
||||
CONFIG_IP_VS_PROTO_UDP=y
|
||||
CONFIG_IP_VS_RR=m
|
||||
CONFIG_NETFILTER_XT_MATCH_COMMENT=m
|
||||
CONFIG_NETFILTER_XT_MATCH_MARK=m
|
||||
CONFIG_NETFILTER_XT_CONNMARK=m
|
||||
|
2
recipes-kernel/linux/linux-yocto/kubernetes.scc
Normal file
2
recipes-kernel/linux/linux-yocto/kubernetes.scc
Normal file
|
@ -0,0 +1,2 @@
|
|||
include docker.scc
|
||||
kconf non-hardware kubernetes.cfg
|
|
@ -19,3 +19,7 @@ KERNEL_FEATURES_append = " cfg/virtio.scc"
|
|||
|
||||
# xen kernel support
|
||||
SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}"
|
||||
|
||||
# k8s and k3s kernel support
|
||||
SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'k8s', ' file://kubernetes.scc', '', d)}"
|
||||
SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'k3s', ' file://kubernetes.scc', '', d)}"
|
Loading…
Reference in New Issue
Block a user