You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -291,11 +291,11 @@ The following information is available to containers through environment
291
291
variables and `downwardAPI` volumes:
292
292
293
293
* Information available via `fieldRef`:
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+
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+
299
299
-->
300
300
下面这些信息可以通过环境变量和 `downwardAPI` 卷提供给容器:
301
301
@@ -309,12 +309,12 @@ variables and `downwardAPI` volumes:
309
309
310
310
<!--
311
311
* Information available via `resourceFieldRef`:
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
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
0 commit comments