Merge pull request #38226 from windsonsea/ephcon

[zh] sync /ephemeral-containers.md
pull/38235/head
Kubernetes Prow Robot 2022-12-02 17:23:52 -08:00 committed by GitHub
commit 494a10fdf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 4 deletions

View File

@ -5,6 +5,9 @@ weight: 80
---
<!--
reviewers:
- verb
- yujuhong
title: Ephemeral Containers
content_type: concept
weight: 80
@ -74,7 +77,7 @@ are incompatible and disallowed for ephemeral containers.
- For a complete list of allowed fields, see the [EphemeralContainer reference
documentation](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#ephemeralcontainer-v1-core).
-->
- 临时容器没有端口配置,因此像 `ports``livenessProbe``readinessProbe`
- 临时容器没有端口配置,因此像 `ports`、`livenessProbe`、`readinessProbe`
这样的字段是不允许的。
- Pod 资源分配是不可变的,因此 `resources` 配置是不允许的。
- 有关允许字段的完整列表,请参见
@ -94,6 +97,13 @@ after you have added it to a Pod.
-->
与常规容器一样,将临时容器添加到 Pod 后,将不能更改或删除临时容器。
{{< note >}}
<!--
Ephemeral containers are not supported by [static pods](/docs/tasks/configure-pod-container/static-pod/).
-->
临时容器不被[静态 Pod](/zh-cn/docs/tasks/configure-pod-container/static-pod/) 支持。
{{< /note >}}
<!--
## Uses for ephemeral containers
@ -123,11 +133,12 @@ When using ephemeral containers, it's helpful to enable [process namespace
sharing](/docs/tasks/configure-pod-container/share-process-namespace/) so
you can view processes in other containers.
-->
使用临时容器时,启用
[进程名字空间共享](/zh-cn/docs/tasks/configure-pod-container/share-process-namespace/)
很有帮助,可以查看其他容器中的进程。
使用临时容器时,
启用[进程名字空间共享](/zh-cn/docs/tasks/configure-pod-container/share-process-namespace/)很有帮助,
可以查看其他容器中的进程。
{{% heading "whatsnext" %}}
<!--
* Learn how to [debug pods using ephemeral containers](/docs/tasks/debug/debug-application/debug-running-pod/#ephemeral-container).
-->