diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-11-06 11:03:02 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-03-15 23:15:42 -0400 |
commit | ba3ece52b3f05ff1abb0fa340a4ea0c92e59507f (patch) | |
tree | 0eecfc59a6478e1d733384b02649b5a22fc2c8d9 /recipes-kernel | |
parent | 913b8e51d7adc5c3d1e339e9ac9f485e83057439 (diff) | |
download | meta-virtualization-ba3ece52b3f05ff1abb0fa340a4ea0c92e59507f.tar.gz |
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>
Diffstat (limited to 'recipes-kernel')
-rw-r--r-- | recipes-kernel/linux/linux-yocto/kubernetes.cfg | 19 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto/kubernetes.scc | 2 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto_virtualization.inc | 4 |
3 files changed, 25 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto/kubernetes.cfg b/recipes-kernel/linux/linux-yocto/kubernetes.cfg new file mode 100644 index 00000000..c3e90d43 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/kubernetes.cfg | |||
@@ -0,0 +1,19 @@ | |||
1 | CONFIG_BLK_CGROUP=y | ||
2 | CONFIG_BLK_DEV_THROTTLING=y | ||
3 | CONFIG_CGROUP_PERF=y | ||
4 | CONFIG_CGROUP_HUGETLB=y | ||
5 | CONFIG_NET_CLS_CGROUP=y | ||
6 | CONFIG_CFS_BANDWIDTH=y | ||
7 | CONFIG_FAIR_GROUP_SCHED=y | ||
8 | CONFIG_RT_GROUP_SCHED=y | ||
9 | CONFIG_IP_NF_TARGET_REDIRECT=y | ||
10 | CONFIG_IP_SET=m | ||
11 | CONFIG_IP_VS=y | ||
12 | CONFIG_IP_VS_NFCT=y | ||
13 | CONFIG_IP_VS_PROTO_TCP=y | ||
14 | CONFIG_IP_VS_PROTO_UDP=y | ||
15 | CONFIG_IP_VS_RR=m | ||
16 | CONFIG_NETFILTER_XT_MATCH_COMMENT=m | ||
17 | CONFIG_NETFILTER_XT_MATCH_MARK=m | ||
18 | CONFIG_NETFILTER_XT_CONNMARK=m | ||
19 | |||
diff --git a/recipes-kernel/linux/linux-yocto/kubernetes.scc b/recipes-kernel/linux/linux-yocto/kubernetes.scc new file mode 100644 index 00000000..1e93b704 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/kubernetes.scc | |||
@@ -0,0 +1,2 @@ | |||
1 | include docker.scc | ||
2 | kconf non-hardware kubernetes.cfg | ||
diff --git a/recipes-kernel/linux/linux-yocto_virtualization.inc b/recipes-kernel/linux/linux-yocto_virtualization.inc index 42a10b35..321dda20 100644 --- a/recipes-kernel/linux/linux-yocto_virtualization.inc +++ b/recipes-kernel/linux/linux-yocto_virtualization.inc | |||
@@ -19,3 +19,7 @@ KERNEL_FEATURES_append = " cfg/virtio.scc" | |||
19 | 19 | ||
20 | # xen kernel support | 20 | # xen kernel support |
21 | SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}" | 21 | SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}" |
22 | |||
23 | # k8s and k3s kernel support | ||
24 | SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'k8s', ' file://kubernetes.scc', '', d)}" | ||
25 | SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'k3s', ' file://kubernetes.scc', '', d)}" \ No newline at end of file | ||