Skip to contentSkip to conversation

k8s: update kernel configuration features

PATCH In review Zhang, Qiang 2 participants 3 messages Jul 21, 2021 – Aug 2, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 k8s: update kernel configuration features

From: Zqiang <[email protected]>

Add kernel config fragment according to the requirement from the file types_unix.go in source codes of kubernetes.

---
 .../linux/linux-yocto/kubernetes.cfg           | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
recipes-kernel/linux/linux-yocto/kubernetes.cfg +17 -1
index c3e90d43..2d4e1f54 100644
@@ -16,4 +16,20 @@ CONFIG_IP_VS_RR=m
 CONFIG_NETFILTER_XT_MATCH_COMMENT=m
 CONFIG_NETFILTER_XT_MATCH_MARK=m
 CONFIG_NETFILTER_XT_CONNMARK=m
-
+CONFIG_NAMESPACES=y
+CONFIG_NET_NS=y
+CONFIG_PID_NS=y
+CONFIG_IPC_NS=y
+CONFIG_UTS_NS=y
+CONFIG_CGROUPS=y
+CONFIG_CGROUP_CPUACCT=y
+CONFIG_CGROUP_DEVICE=y
+CONFIG_CGROUP_FREEZER=y
+CONFIG_CGROUP_SCHED=y
+CONFIG_SMP=y
+CONFIG_CPUSETS=y
+CONFIG_MEMCG=y
+CONFIG_INET=y
+CONFIG_EXT4_FS=y
+CONFIG_PROC_FS=y
+CONFIG_NETFILTER_XT_TARGET_REDIRECT=m
Signature · 1 line
2.29.2
#1 lore raw

I've merged this for now, but in the next month, I'll be moving all of the layer fragments to the kernel-cache, and at that time, we should be re-using fragments that already provide similar options, versus simply listing them all in the k8s fragment.

I'll take care of those changes, but I just wanted to give a heads up.

Bruce

In message: [meta-virtualization] [PATCH] k8s: update kernel configuration features

Quoted 39 lines · on 21/07/2021 [email protected] wrote:

From: Zqiang <[email protected]>

Add kernel config fragment according to the requirement from the file types_unix.go in source codes of kubernetes.

---
 .../linux/linux-yocto/kubernetes.cfg           | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
recipes-kernel/linux/linux-yocto/kubernetes.cfg +17 -1
index c3e90d43..2d4e1f54 100644
@@ -16,4 +16,20 @@ CONFIG_IP_VS_RR=m
 CONFIG_NETFILTER_XT_MATCH_COMMENT=m
 CONFIG_NETFILTER_XT_MATCH_MARK=m
 CONFIG_NETFILTER_XT_CONNMARK=m
-
+CONFIG_NAMESPACES=y
+CONFIG_NET_NS=y
+CONFIG_PID_NS=y
+CONFIG_IPC_NS=y
+CONFIG_UTS_NS=y
+CONFIG_CGROUPS=y
+CONFIG_CGROUP_CPUACCT=y
+CONFIG_CGROUP_DEVICE=y
+CONFIG_CGROUP_FREEZER=y
+CONFIG_CGROUP_SCHED=y
+CONFIG_SMP=y
+CONFIG_CPUSETS=y
+CONFIG_MEMCG=y
+CONFIG_INET=y
+CONFIG_EXT4_FS=y
+CONFIG_PROC_FS=y
+CONFIG_NETFILTER_XT_TARGET_REDIRECT=m
Signature · 1 line
2.29.2
#2 lore raw

________________________________________
From: [email protected] <[email protected]> on behalf of Bruce Ashfield <[email protected]>
Sent: Thursday, 29 July 2021 23:01
To: Zhang, Qiang
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH] k8s: update kernel configuration features

[Please note: This e-mail is from an EXTERNAL e-mail address]

Quoted 7 lines

I've merged this for now, but in the next month, I'll be moving all of the layer fragments to the kernel-cache, and at that time, we should be re-using fragments that already provide similar options, versus simply listing them all in the k8s fragment.

I'll take care of those changes, but I just wanted to give a heads up.

Thanks Bruce

Quoted 44 lines

Bruce

In message: [meta-virtualization] [PATCH] k8s: update kernel configuration >features on 21/07/2021 [email protected] wrote:

From: Zqiang <[email protected]>

Add kernel config fragment according to the requirement from the file types_unix.go in source codes of kubernetes.

---
 .../linux/linux-yocto/kubernetes.cfg           | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
recipes-kernel/linux/linux-yocto/kubernetes.cfg +17 -2
index c3e90d43..2d4e1f54 100644
@@ -16,4 +16,20 @@ CONFIG_IP_VS_RR=m
 CONFIG_NETFILTER_XT_MATCH_COMMENT=m
 CONFIG_NETFILTER_XT_MATCH_MARK=m
 CONFIG_NETFILTER_XT_CONNMARK=m
-
+CONFIG_NAMESPACES=y
+CONFIG_NET_NS=y
+CONFIG_PID_NS=y
+CONFIG_IPC_NS=y
+CONFIG_UTS_NS=y
+CONFIG_CGROUPS=y
+CONFIG_CGROUP_CPUACCT=y
+CONFIG_CGROUP_DEVICE=y
+CONFIG_CGROUP_FREEZER=y
+CONFIG_CGROUP_SCHED=y
+CONFIG_SMP=y
+CONFIG_CPUSETS=y
+CONFIG_MEMCG=y
+CONFIG_INET=y
+CONFIG_EXT4_FS=y
+CONFIG_PROC_FS=y
+CONFIG_NETFILTER_XT_TARGET_REDIRECT=m
--

2.29.2