Fix broken link -- downward-api
Signed-off-by: Hu Shuai <hus.fnst@fujitsu.com>pull/35833/head
parent
940a74658b
commit
9b7af96880
|
@ -22,7 +22,7 @@ inject the Pod's name into the well-known environment variable.
|
||||||
|
|
||||||
In Kubernetes, there are two ways to expose Pod and container fields to a running container:
|
In Kubernetes, there are two ways to expose Pod and container fields to a running container:
|
||||||
|
|
||||||
* as [environment variables](/docs/tasks/inject-data-application/environment-variable-expose-pod-information/#the-downward-api)
|
* as [environment variables](/docs/tasks/inject-data-application/environment-variable-expose-pod-information/)
|
||||||
* as [files in a `downwardAPI` volume](/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/)
|
* as [files in a `downwardAPI` volume](/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/)
|
||||||
|
|
||||||
Together, these two ways of exposing Pod and container fields are called the
|
Together, these two ways of exposing Pod and container fields are called the
|
||||||
|
@ -127,5 +127,5 @@ calculation.
|
||||||
You can read about [`downwardAPI` volumes](/docs/concepts/storage/volumes/#downwardapi).
|
You can read about [`downwardAPI` volumes](/docs/concepts/storage/volumes/#downwardapi).
|
||||||
|
|
||||||
You can try using the downward API to expose container- or Pod-level information:
|
You can try using the downward API to expose container- or Pod-level information:
|
||||||
* as [environment variables](/docs/tasks/inject-data-application/environment-variable-expose-pod-information/#the-downward-api)
|
* as [environment variables](/docs/tasks/inject-data-application/environment-variable-expose-pod-information/)
|
||||||
* as [files in `downwardAPI` volume](/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/)
|
* as [files in `downwardAPI` volume](/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/)
|
||||||
|
|
|
@ -13,7 +13,7 @@ A `downwardAPI` volume can expose Pod fields and container fields.
|
||||||
|
|
||||||
In Kubernetes, there are two ways to expose Pod and container fields to a running container:
|
In Kubernetes, there are two ways to expose Pod and container fields to a running container:
|
||||||
|
|
||||||
* [Environment variables](/docs/tasks/inject-data-application/environment-variable-expose-pod-information/#the-downward-api)
|
* [Environment variables](/docs/tasks/inject-data-application/environment-variable-expose-pod-information/)
|
||||||
* Volume files, as explained in this task
|
* Volume files, as explained in this task
|
||||||
|
|
||||||
Together, these two ways of exposing Pod and container fields are called the
|
Together, these two ways of exposing Pod and container fields are called the
|
||||||
|
|
|
@ -19,7 +19,7 @@ to identify which part of the overall task to work on.
|
||||||
The pod index is available in the {{< glossary_tooltip text="annotation" term_id="annotation" >}}
|
The pod index is available in the {{< glossary_tooltip text="annotation" term_id="annotation" >}}
|
||||||
`batch.kubernetes.io/job-completion-index` as a string representing its
|
`batch.kubernetes.io/job-completion-index` as a string representing its
|
||||||
decimal value. In order for the containerized task process to obtain this index,
|
decimal value. In order for the containerized task process to obtain this index,
|
||||||
you can publish the value of the annotation using the [downward API](/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/#the-downward-api)
|
you can publish the value of the annotation using the [downward API](/docs/concepts/workloads/pods/downward-api/)
|
||||||
mechanism.
|
mechanism.
|
||||||
For convenience, the control plane automatically sets the downward API to
|
For convenience, the control plane automatically sets the downward API to
|
||||||
expose the index in the `JOB_COMPLETION_INDEX` environment variable.
|
expose the index in the `JOB_COMPLETION_INDEX` environment variable.
|
||||||
|
|
Loading…
Reference in New Issue