@@ -21,6 +21,25 @@ interface.
21
21
本文档介绍如何通过 {{< glossary_tooltip term_id="sysctl" >}}
22
22
接口在 Kubernetes 集群中配置和使用内核参数。
23
23
24
+ <!--
25
+ Starting from Kubernetes version 1.23, the kubelet supports the use of either `/` or `.`
26
+ as separators for sysctl names.
27
+ For example, you can represent the same sysctl name as `kernel.shm_rmid_forced` using a
28
+ period as the separator, or as `kernel/shm_rmid_forced` using a slash as a separator.
29
+ For more sysctl parameter conversion method details, please refer to
30
+ the page [sysctl.d(5)](https://man7.org/linux/man-pages/man5/sysctl.d.5.html) from
31
+ the Linux man-pages project.
32
+ Setting Sysctls for a Pod and PodSecurityPolicy features do not yet support
33
+ setting sysctls with slashes.
34
+ -->
35
+ {{< note >}}
36
+ 从 Kubernetes 1.23 版本开始,kubelet 支持使用 ` / ` 或 ` . ` 作为 sysctl 参数的分隔符。
37
+ 例如,你可以使用点或者斜线作为分隔符表示相同的 sysctl 参数,以点作为分隔符表示为: ` kernel.shm_rmid_forced ` ,
38
+ 或者以斜线作为分隔符表示为:` kernel/shm_rmid_forced ` 。
39
+ 更多 sysctl 参数转换方法详情请参考 Linux man-pages
40
+ [ sysctl.d(5)] ( https://man7.org/linux/man-pages/man5/sysctl.d.5.html ) 。
41
+ 设置 Pod 的 Sysctl 参数 和 PodSecurityPolicy 功能尚不支持设置包含斜线的 Sysctl 参数。
42
+ {{< /note >}}
24
43
## {{% heading "prerequisites" %}}
25
44
26
45
@@ -103,6 +122,7 @@ The following sysctls are supported in the _safe_ set:
103
122
- ` net.ipv4.ip_local_port_range `
104
123
- ` net.ipv4.tcp_syncookies `
105
124
- ` net.ipv4.ping_group_range ` (从 Kubernetes 1.18 开始)
125
+ - ` net.ipv4.ip_unprivileged_port_start ` (从 Kubernetes 1.22 开始).
106
126
107
127
<!--
108
128
The example `net.ipv4.tcp_syncookies` is not namespaced on Linux kernel version 4.4 or lower.
0 commit comments