Skip to content

Commit 3c791b8

Browse files
authored
Merge pull request #42170 from my-git9/path-9296
[zh-cn] sync user-namespace
2 parents 92f9c2a + 81d2535 commit 3c791b8

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

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

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,33 +80,39 @@ ext4, xfs, fat, tmpfs, overlayfs.
8080
Linux 6.3 中支持 idmap 挂载的一些比较流行的文件系统是:btrfs、ext4、xfs、fat、
8181
tmpfs、overlayfs。
8282

83-
<!-- When merging this with the dev-1.27 branch conflicts will arise. The text
84-
as it is in the dev-1.27 branch should be used. -->
8583
<!--
8684
In addition, support is needed in the
8785
{{< glossary_tooltip text="container runtime" term_id="container-runtime" >}}
8886
to use this feature with Kubernetes stateless pods:
8987
9088
* CRI-O: version 1.25 (and later) supports user namespaces for containers.
91-
92-
Please note that containerd v1.7 supports user namespaces for containers,
93-
compatible with Kubernetes {{< skew currentPatchVersion >}}. It should not be used
94-
with Kubernetes 1.27 (and later).
95-
96-
Support for this in [cri-dockerd is not planned][CRI-dockerd-issue] yet.
9789
-->
9890

9991
此外,需要在{{< glossary_tooltip text="容器运行时" term_id="container-runtime" >}}提供支持,
10092
才能在 Kubernetes 无状态 Pod 中使用这一功能:
10193

10294
* CRI-O:1.25(及更高)版本支持配置容器的用户命名空间。
10395

104-
请注意,containerd v1.7 支持配置容器的用户命名空间,与 Kubernetes {{< skew currentPatchVersion >}}
105-
兼容。它不应与 Kubernetes 1.27(及更高)版本一起使用。
106-
107-
目前 [cri-dockerd 没有计划][CRI-dockerd-issue]支持此功能。
108-
109-
[CRI-dockerd-issue]: https://github.com/Mirantis/cri-dockerd/issues/74
96+
<!--
97+
containerd v1.7 is not compatible with the userns support in Kubernetes v{{< skew currentVersion >}}.
98+
Kubernetes v1.25 and v1.26 used an earlier implementation that **is** compatible with containerd v1.7,
99+
in terms of userns support.
100+
If you are using a version of Kubernetes other than {{< skew currentVersion >}},
101+
check the documentation for that version of Kubernetes for the most relevant information.
102+
If there is a newer release of containerd than v1.7 available for use, also check the containerd
103+
documentation for compatibility information.
104+
105+
You can see the status of user namespaces support in cri-dockerd tracked in an [issue][CRI-dockerd-issue]
106+
on GitHub.
107+
-->
108+
containerd v1.7 与 Kubernetes v{{< skew currentVersion >}} 中的用户命名空间不兼容。
109+
Kubernetes v1.25 和 v1.26 使用了早期的实现,在用户命名空间方面与 containerd v1.7 兼容。
110+
如果你使用的 Kubernetes 版本不是 {{< skew currentVersion >}},请查看该版本 Kubernetes
111+
的文档以获取更准确的信息。
112+
如果有比 v1.7 更新的 containerd 版本可供使用,请检查 containerd 文档以获取兼容性信息。
113+
114+
你可以在 GitHub 上的 [issue][CRI-dockerd-issue] 中查看 cri-dockerd
115+
中用户命名空间支持的状态。
110116

111117
<!--
112118
## Introduction

0 commit comments

Comments
 (0)