@@ -5,6 +5,9 @@ weight: 80
5
5
---
6
6
7
7
<!--
8
+ reviewers:
9
+ - verb
10
+ - yujuhong
8
11
title: Ephemeral Containers
9
12
content_type: concept
10
13
weight: 80
@@ -74,7 +77,7 @@ are incompatible and disallowed for ephemeral containers.
74
77
- For a complete list of allowed fields, see the [EphemeralContainer reference
75
78
documentation](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#ephemeralcontainer-v1-core).
76
79
-->
77
- - 临时容器没有端口配置,因此像 ` ports ` , ` livenessProbe ` , ` readinessProbe `
80
+ - 临时容器没有端口配置,因此像 ` ports ` 、 ` livenessProbe ` 、 ` readinessProbe `
78
81
这样的字段是不允许的。
79
82
- Pod 资源分配是不可变的,因此 ` resources ` 配置是不允许的。
80
83
- 有关允许字段的完整列表,请参见
@@ -94,6 +97,13 @@ after you have added it to a Pod.
94
97
-->
95
98
与常规容器一样,将临时容器添加到 Pod 后,将不能更改或删除临时容器。
96
99
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
+
97
107
<!--
98
108
## Uses for ephemeral containers
99
109
@@ -123,11 +133,12 @@ When using ephemeral containers, it's helpful to enable [process namespace
123
133
sharing](/docs/tasks/configure-pod-container/share-process-namespace/) so
124
134
you can view processes in other containers.
125
135
-->
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
+ 可以查看其他容器中的进程。
129
139
130
140
{{% heading "whatsnext" %}}
141
+
131
142
<!--
132
143
* Learn how to [debug pods using ephemeral containers](/docs/tasks/debug/debug-application/debug-running-pod/#ephemeral-container).
133
144
-->
0 commit comments