Merge pull request #42604 from asa3311/sync-zh-51

[zh] sync user-namespaces /tools/_index /releases/_index
pull/42602/head^2
Kubernetes Prow Robot 2023-08-17 19:42:28 -07:00 committed by GitHub
commit b1c456713e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 6 deletions

View File

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

View File

@ -3,6 +3,12 @@ title: "安装工具"
weight: 10
description: 在你的计算机上设置 Kubernetes 工具。
no_list: true
card:
name: tasks
weight: 20
anchors:
- anchor: "#kubectl"
title: 安装 kubectl
---
<!--
@ -10,6 +16,12 @@ title: "Install Tools"
description: Set up Kubernetes tools on your computer.
weight: 10
no_list: true
card:
name: tasks
weight: 20
anchors:
- anchor: "#kubectl"
title: Install kubectl
-->
## kubectl

View File

@ -2,11 +2,13 @@
linktitle: 发行版本历史
title: 发行版本
type: docs
layout: release-info
---
<!--
linktitle: Release History
title: Releases
type: docs
layout: release-info
-->