Skip to content

Commit 9220cd5

Browse files
authored
Merge pull request #25133 from tengqm/zh-sync-downwardapi
[zh] sync downward-api-volume-expose-pod-information.md
2 parents 14e2775 + 8ca50ec commit 9220cd5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,11 @@ The following information is available to containers through environment
291291
variables and `downwardAPI` volumes:
292292
293293
* Information available via `fieldRef`:
294-
* `metadata.name` - the pods name
295-
* `metadata.namespace` - the pods namespace
296-
* `metadata.uid` - the pods UID, available since v1.8.0-alpha.2
297-
* `metadata.labels['<KEY>']` - the value of the pods label `<KEY>` (for example, `metadata.labels['mylabel']`); available in Kubernetes 1.9+
298-
* `metadata.annotations['<KEY>']` - the value of the pods annotation `<KEY>` (for example, `metadata.annotations['myannotation']`); available in Kubernetes 1.9+
294+
* `metadata.name` - the pod's name
295+
* `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+
299299
-->
300300
下面这些信息可以通过环境变量和 `downwardAPI` 卷提供给容器:
301301

@@ -309,12 +309,12 @@ variables and `downwardAPI` volumes:
309309

310310
<!--
311311
* Information available via `resourceFieldRef`:
312-
* A Containers CPU limit
313-
* A Containers CPU request
314-
* A Containers memory limit
315-
* A Containers memory request
316-
* A Containers ephemeral-storage limit, available since v1.8.0-beta.0
317-
* A Containers ephemeral-storage request, available since v1.8.0-beta.0
312+
* A Container's CPU limit
313+
* A Container's CPU request
314+
* A Container's memory limit
315+
* 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
318318
-->
319319
* 能通过 `resourceFieldRef` 获得的:
320320
* 容器的 CPU 约束值

0 commit comments

Comments
 (0)