Skip to content

Commit cc998f3

Browse files
authored
Merge pull request #48711 from my-git9/pp-21875
[zh-cn]sync user-namespaces.md
2 parents f3d5e8e + 9e37243 commit cc998f3

File tree

1 file changed

+8
-33
lines changed

1 file changed

+8
-33
lines changed

content/zh-cn/docs/concepts/workloads/pods/user-namespaces.md

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -85,69 +85,44 @@ In addition, the container runtime and its underlying OCI runtime must support
8585
user namespaces. The following OCI runtimes offer support:
8686
8787
* [crun](https://github.com/containers/crun) version 1.9 or greater (it's recommend version 1.13+).
88+
* [runc](https://github.com/opencontainers/runc) version 1.2 or greater
8889
-->
8990

9091
此外,容器运行时及其底层 OCI 运行时必须支持用户命名空间。以下 OCI 运行时提供支持:
9192

9293
* [crun](https://github.com/containers/crun) 1.9 或更高版本(推荐 1.13+ 版本)。
93-
94-
<!-- ideally, update this if a newer minor release of runc comes out, whether or not it includes the idmap support -->
94+
* [runc](https://github.com/opencontainers/runc) 1.2 或更高版本。
9595

9696
{{< note >}}
9797
<!--
98-
Many OCI runtimes do not include the support needed for using user namespaces in
98+
Some OCI runtimes do not include the support needed for using user namespaces in
9999
Linux pods. If you use a managed Kubernetes, or have downloaded it from packages
100-
and set it up, it's likely that nodes in your cluster use a runtime that doesn't
101-
include this support. For example, the most widely used OCI runtime is `runc`,
102-
and version `1.1.z` of runc doesn't support all the features needed by the
103-
Kubernetes implementation of user namespaces.
100+
and set it up, it's possible that nodes in your cluster use a runtime that doesn't
101+
include this support.
104102
-->
105-
许多 OCI 运行时不包含在 Linux Pod 中使用用户命名空间所需的支持。
103+
一些 OCI 运行时不包含在 Linux Pod 中使用用户命名空间所需的支持。
106104
如果你使用托管 Kubernetes,或者使用软件包下载并安装 Kubernetes 集群,
107105
则集群中的节点可能使用不包含支持此特性的运行时。
108-
例如,最广泛使用的 OCI 运行时是 `runc`,而 runc 的 `1.1.z`
109-
版本不支持 Kubernetes 实现用户命名空间所需的所有特性。
110-
111-
<!--
112-
If there is a newer release of runc than 1.1 available for use, check its
113-
documentation and release notes for compatibility (look for idmap mounts support
114-
in particular, because that is the missing feature).
115-
-->
116-
如果有比 1.1 更新的 runc 版本可供使用,请检查其文档和发行说明以了解兼容性
117-
(特别寻找 idmap 挂载支持,因为这一特性是缺失的)。
118106
{{< /note >}}
119107

120108
<!--
121109
To use user namespaces with Kubernetes, you also need to use a CRI
122110
{{< glossary_tooltip text="container runtime" term_id="container-runtime" >}}
123111
to use this feature with Kubernetes pods:
124112
113+
* containerd: version 2.0 (and later) supports user namespaces for containers.
125114
* CRI-O: version 1.25 (and later) supports user namespaces for containers.
126115
-->
127116
此外,需要在{{< glossary_tooltip text="容器运行时" term_id="container-runtime" >}}提供支持,
128117
才能在 Kubernetes Pod 中使用这一功能:
129118

119+
* containerd:2.0(及更高版本)支持容器使用用户命名空间。
130120
* CRI-O:1.25(及更高)版本支持配置容器的用户命名空间。
131121

132122
<!--
133-
containerd v1.7 is not compatible with the userns support in Kubernetes v1.27 to v{{< skew latestVersion >}}.
134-
Kubernetes v1.25 and v1.26 used an earlier implementation that **is** compatible with containerd v1.7,
135-
in terms of userns support.
136-
If you are using a version of Kubernetes other than {{< skew currentVersion >}},
137-
check the documentation for that version of Kubernetes for the most relevant information.
138-
If there is a newer release of containerd than v1.7 available for use, also check the containerd
139-
documentation for compatibility information.
140-
141123
You can see the status of user namespaces support in cri-dockerd tracked in an [issue][CRI-dockerd-issue]
142124
on GitHub.
143125
-->
144-
containerd v1.7 与 Kubernetes v1.27 至 v{{< skew currentVersion >}}
145-
版本中的用户命名空间不兼容。
146-
Kubernetes v1.25 和 v1.26 使用了早期的实现,在用户命名空间方面与 containerd v1.7 兼容。
147-
如果你使用的 Kubernetes 版本不是 {{< skew currentVersion >}},请查看该版本 Kubernetes
148-
的文档以获取更准确的信息。
149-
如果有比 v1.7 更新的 containerd 版本可供使用,请检查 containerd 文档以获取兼容性信息。
150-
151126
你可以在 GitHub 上的 [issue][CRI-dockerd-issue] 中查看 cri-dockerd
152127
中用户命名空间支持的状态。
153128

0 commit comments

Comments
 (0)