Skip to content

Commit efa89a4

Browse files
authored
Merge pull request #30895 from mengjiao-liu/sysctl-allow-slashes-zh
sync sysctl-cluster.md
2 parents 8577231 + ab21cca commit efa89a4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

content/zh/docs/tasks/administer-cluster/sysctl-cluster.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,25 @@ interface.
2121
本文档介绍如何通过 {{< glossary_tooltip term_id="sysctl" >}}
2222
接口在 Kubernetes 集群中配置和使用内核参数。
2323

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 >}}
2443
## {{% heading "prerequisites" %}}
2544

2645

@@ -103,6 +122,7 @@ The following sysctls are supported in the _safe_ set:
103122
- `net.ipv4.ip_local_port_range`
104123
- `net.ipv4.tcp_syncookies`
105124
- `net.ipv4.ping_group_range` (从 Kubernetes 1.18 开始)
125+
- `net.ipv4.ip_unprivileged_port_start` (从 Kubernetes 1.22 开始).
106126

107127
<!--
108128
The example `net.ipv4.tcp_syncookies` is not namespaced on Linux kernel version 4.4 or lower.

0 commit comments

Comments
 (0)