Skip to content

Commit 494a10f

Browse files
authored
Merge pull request #38226 from windsonsea/ephcon
[zh] sync /ephemeral-containers.md
2 parents 398cbcc + 5938932 commit 494a10f

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

content/zh-cn/docs/concepts/workloads/pods/ephemeral-containers.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ weight: 80
55
---
66

77
<!--
8+
reviewers:
9+
- verb
10+
- yujuhong
811
title: Ephemeral Containers
912
content_type: concept
1013
weight: 80
@@ -74,7 +77,7 @@ are incompatible and disallowed for ephemeral containers.
7477
- For a complete list of allowed fields, see the [EphemeralContainer reference
7578
documentation](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#ephemeralcontainer-v1-core).
7679
-->
77-
- 临时容器没有端口配置,因此像 `ports``livenessProbe``readinessProbe`
80+
- 临时容器没有端口配置,因此像 `ports``livenessProbe``readinessProbe`
7881
这样的字段是不允许的。
7982
- Pod 资源分配是不可变的,因此 `resources` 配置是不允许的。
8083
- 有关允许字段的完整列表,请参见
@@ -94,6 +97,13 @@ after you have added it to a Pod.
9497
-->
9598
与常规容器一样,将临时容器添加到 Pod 后,将不能更改或删除临时容器。
9699

100+
{{< note >}}
101+
<!--
102+
Ephemeral containers are not supported by [static pods](/docs/tasks/configure-pod-container/static-pod/).
103+
-->
104+
临时容器不被[静态 Pod](/zh-cn/docs/tasks/configure-pod-container/static-pod/) 支持。
105+
{{< /note >}}
106+
97107
<!--
98108
## Uses for ephemeral containers
99109
@@ -123,11 +133,12 @@ When using ephemeral containers, it's helpful to enable [process namespace
123133
sharing](/docs/tasks/configure-pod-container/share-process-namespace/) so
124134
you can view processes in other containers.
125135
-->
126-
使用临时容器时,启用
127-
[进程名字空间共享](/zh-cn/docs/tasks/configure-pod-container/share-process-namespace/)
128-
很有帮助,可以查看其他容器中的进程。
136+
使用临时容器时,
137+
启用[进程名字空间共享](/zh-cn/docs/tasks/configure-pod-container/share-process-namespace/)很有帮助,
138+
可以查看其他容器中的进程。
129139

130140
{{% heading "whatsnext" %}}
141+
131142
<!--
132143
* Learn how to [debug pods using ephemeral containers](/docs/tasks/debug/debug-application/debug-running-pod/#ephemeral-container).
133144
-->

0 commit comments

Comments
 (0)