@@ -67,12 +67,23 @@ this is true when user namespaces are used.
6767* The node OS needs to be Linux
6868* You need to exec commands in the host
6969* You need to be able to exec into pods
70- * Feature gate `UserNamespacesStatelessPodsSupport` need to be enabled.
70+ * You need to enable the `UserNamespacesSupport`
71+ [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
7172-->
7273* 节点上的操作系统必须为 Linux
7374* 你需要在宿主机上执行命令
7475* 你需要能够通过 exec 操作进入 Pod
75- * 特性 ` UserNamespacesStatelessPodsSupport ` 需要被启用。
76+ * 你需要启用 ` UserNamespacesSupport ` [ 特性门控] ( /zh-cn/docs/reference/command-line-tools-reference/feature-gates/ ) 。
77+
78+ {{< note >}}
79+ <!--
80+ The feature gate to enable user namespaces was previously named
81+ `UserNamespacesStatelessPodsSupport`, when only stateless pods were supported.
82+ Only Kubernetes v1.25 through to v1.27 recognise `UserNamespacesStatelessPodsSupport`.
83+ -->
84+ 在用户名字空间原来仅支持无状态的 Pod 时,启用用户名字空间的特性门控先前被命名为 ` UserNamespacesStatelessPodsSupport ` 。
85+ 只有 Kubernetes v1.25 到 v1.27 才能识别 ` UserNamespacesStatelessPodsSupport ` 。
86+ {{</ note >}}
7687
7788<!--
7889The cluster that you're using **must** include at least one node that meets the
@@ -110,11 +121,10 @@ created without user namespaces.**
110121## 运行一个使用用户名字空间的 Pod {#create-pod}
111122
112123<!--
113- A user namespace for a stateless pod is enabled setting the `hostUsers` field of
114- `.spec` to `false`. For example:
124+ A user namespace for a pod is enabled setting the `hostUsers` field of `.spec`
125+ to `false`. For example:
115126-->
116- 为一个无状态的 Pod 启用用户名字空间需要设置 ` .spec ` 的 ` hostUsers ` 字段
117- 为 ` false ` . 例如:
127+ 为一个 Pod 启用用户名字空间需要设置 ` .spec ` 的 ` hostUsers ` 字段为 ` false ` . 例如:
118128
119129{{% code file="pods/user-namespaces-stateless.yaml" %}}
120130
0 commit comments