May 2018
Intermediate to advanced
554 pages
13h 51m
English
downwardAPI volume is used to expose Pod information into a container. The definition of downwardAPI is a list of items. An item contains a path and fieldRef. Kubernetes will dump the specified metadata listed in fieldRef to a file named path under mountPath and mount the <volume name> into the destination you specified. Currently supported metadata for downwardAPI volume includes:
|
Field path |
Scope |
Definition |
|
spec.nodeName |
Pod |
The node that the Pod is running on |
|
spec.serviceAccountName |
Pod |
The service account associating with the current Pod |
|
metadata.name |
Pod |
The name of the Pod |
|
metadata.namespace |
Pod |
The Namespace that the Pod belongs to |
|
metadata.annotations |
Pod |
The annotations ... |
Read now
Unlock full access