Skip to content

Commit 6a7b301

Browse files
authored
Merge pull request #25989 from yuandongx/patch-18
[zh] sync en.
2 parents c0ad64e + 8079301 commit 6a7b301

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

content/zh/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -293,36 +293,39 @@ variables and `downwardAPI` volumes:
293293
* Information available via `fieldRef`:
294294
* `metadata.name` - the pod's name
295295
* `metadata.namespace` - the pod's namespace
296-
* `metadata.uid` - the pod's UID, available since v1.8.0-alpha.2
297-
* `metadata.labels['<KEY>']` - the value of the pod's label `<KEY>` (for example, `metadata.labels['mylabel']`); available in Kubernetes 1.9+
298-
* `metadata.annotations['<KEY>']` - the value of the pod's annotation `<KEY>` (for example, `metadata.annotations['myannotation']`); available in Kubernetes 1.9+
296+
* `metadata.uid` - the pod's UID
297+
* `metadata.labels['<KEY>']` - the value of the pod's label `<KEY>` (for example, `metadata.labels['mylabel']`)
298+
* `metadata.annotations['<KEY>']` - the value of the pod's annotation `<KEY>` (for example, `metadata.annotations['myannotation']`)
299299
-->
300300
下面这些信息可以通过环境变量和 `downwardAPI` 卷提供给容器:
301301

302302
* 能通过 `fieldRef` 获得的:
303303
* `metadata.name` - Pod 名称
304304
* `metadata.namespace` - Pod 名字空间
305-
* `metadata.uid` - Pod的UID, 版本要求 v1.8.0-alpha.2
306-
* `metadata.labels['<KEY>']` - Pod 标签 `<KEY>` 的值 (例如, `metadata.labels['mylabel']`);
307-
版本要求 Kubernetes 1.9+
308-
* `metadata.annotations['<KEY>']` - Pod 的注解 `<KEY>` 的值(例如, `metadata.annotations['myannotation']`); 版本要求 Kubernetes 1.9+
305+
* `metadata.uid` - Pod 的 UID
306+
* `metadata.labels['<KEY>']` - Pod 标签 `<KEY>` 的值 (例如, `metadata.labels['mylabel']`
307+
* `metadata.annotations['<KEY>']` - Pod 的注解 `<KEY>` 的值(例如, `metadata.annotations['myannotation']`
309308

310309
<!--
311310
* Information available via `resourceFieldRef`:
312311
* A Container's CPU limit
313312
* A Container's CPU request
314313
* A Container's memory limit
315314
* A Container's memory request
316-
* A Container's ephemeral-storage limit, available since v1.8.0-beta.0
317-
* A Container's ephemeral-storage request, available since v1.8.0-beta.0
315+
* A Container's hugepages limit (providing that the `DownwardAPIHugePages` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled)
316+
* A Container's hugepages request (providing that the `DownwardAPIHugePages` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled)
317+
* A Container's ephemeral-storage limit
318+
* A Container's ephemeral-storage request
318319
-->
319320
* 能通过 `resourceFieldRef` 获得的:
320321
* 容器的 CPU 约束值
321322
* 容器的 CPU 请求值
322323
* 容器的内存约束值
323324
* 容器的内存请求值
324-
* 容器的临时存储约束值, 版本要求 v1.8.0-beta.0
325-
* 容器的临时存储请求值, 版本要求 v1.8.0-beta.0
325+
* 容器的巨页限制值(前提是启用了 `DownwardAPIHugePages` [特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/)
326+
* 容器的巨页请求值(前提是启用了 `DownwardAPIHugePages` [特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/)
327+
* 容器的临时存储约束值
328+
* 容器的临时存储请求值
326329

327330
<!--
328331
In addition, the following information is available through

0 commit comments

Comments
 (0)