Skip to content

Commit 10b1aa8

Browse files
authored
Merge pull request #40993 from my-git9/path-6795
[zh-cn] sync sysctl-cluster.md
2 parents 670f94c + 33d15e2 commit 10b1aa8

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

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

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,15 @@ The following sysctls are supported in the _safe_ set:
136136

137137
{{< note >}}
138138
<!--
139-
The example `net.ipv4.tcp_syncookies` is not namespaced on Linux kernel version 4.4 or lower.
139+
There are some exceptions to the set of safe sysctls:
140+
141+
- The `net.*` sysctls are not allowed with host networking enabled.
142+
- The `net.ipv4.tcp_syncookies` sysctl is not namespaced on Linux kernel version 4.4 or lower.
140143
-->
141-
示例中的 `net.ipv4.tcp_syncookies` 在 Linux 内核 4.4 或更低的版本中是无命名空间的。
144+
安全 sysctl 参数有一些例外:
145+
146+
- `net.*` sysctl 参数不允许在启用主机网络的情况下使用。
147+
- `net.ipv4.tcp_syncookies` sysctl 参数在 Linux 内核 4.4 或更低的版本中是无命名空间的。
142148
{{< /note >}}
143149

144150
<!--
@@ -217,14 +223,14 @@ in future versions of the Linux kernel.
217223
- `kernel.sem`,
218224
- `fs.mqueue.*`,
219225
<!--
220-
- The parameters under `net.*` that can be set in container networking
221-
namespace. However, there are exceptions (e.g., before Linux 5.12.2,
222-
`net.netfilter.nf_conntrack_max` and `net.netfilter.nf_conntrack_expect_max`
223-
can be set in container networking namespace but they are unnamespaced).
226+
- Those `net.*` that can be set in container networking namespace. However,
227+
there are exceptions (e.g., `net.netfilter.nf_conntrack_max` and
228+
`net.netfilter.nf_conntrack_expect_max` can be set in container networking
229+
namespace but are unnamespaced before Linux 5.12.2).
224230
-->
225-
- `net.*`(内核中可以在容器命名空间里被更改的网络配置项相关参数)。然而也有一些特例
226-
(例如,在 Linux 5.12.2 前,`net.netfilter.nf_conntrack_max``net.netfilter.nf_conntrack_expect_max`
227-
可以在容器命名空间里被更改,但它们是非命名空间的)。
231+
- 那些可以在容器网络命名空间中设置的 `net.*`。但是,也有例外(例如
232+
`net.netfilter.nf_conntrack_max``net.netfilter.nf_conntrack_expect_max`
233+
可以在容器网络命名空间中设置,但在 Linux 5.12.2 之前它们是无命名空间的)。
228234

229235
<!--
230236
Sysctls with no namespace are called _node-level_ sysctls. If you need to set

0 commit comments

Comments
 (0)