Difference between revisions of "Kubernetes Downward API"
Jump to navigation
Jump to search
(22 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | * https://kubernetes.io/docs/concepts/workloads/pods/downward-api/#available-fields | ||
+ | |||
+ | * <code>[[fieldRef:]]</code> | ||
+ | ** <code>[[metadata.name]]</code> | ||
+ | ** <code>[[metadata.namespace]]</code> | ||
+ | ** <code>[[metadata.uid]]</code> | ||
+ | ** <code>metadata.annotations['<KEY>']</code> | ||
+ | ** <code>metadata.labels['<KEY>']</code> | ||
+ | ** <code>[[spec.serviceAccountName]]</code> | ||
+ | ** <code>[[spec.nodeName]]</code> | ||
+ | ** <code>[[status.hostIP]]</code> | ||
+ | ** <code>[[status.podIP]]</code> | ||
+ | ** <code>[[metadata.labels]]</code> | ||
+ | ** <code>[[metadata.annotations]]</code> | ||
+ | |||
+ | |||
+ | * <code>[[resourceFieldRef]]</code> | ||
+ | ** <code>[[resource: limits.cpu]]</code> | ||
+ | ** <code>[[resource: requests.cpu]]</code> | ||
+ | ** <code>[[resource: limits.memory]]</code> | ||
+ | ** <code>[[resource: requests.memory]]</code> | ||
+ | ** <code>[[resource: limits.hugepages-*]]</code> | ||
+ | ** <code>[[resource: requests.hugepages-*]]</code> | ||
− | |||
− | + | * <code>[[valueFrom:]]</code> | |
+ | * <code>[[fieldPath:]]</code> | ||
+ | == Related == | ||
+ | * Read Expose Pod Information to Containers Through Files, https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/ | ||
+ | * [[Kubernetes, env:]] | ||
== See also == | == See also == | ||
− | * {{K8s}} | + | * {{K8s API}} |
[[Category:K8s]] | [[Category:K8s]] |
Latest revision as of 18:29, 21 October 2023
fieldRef:
metadata.name
metadata.namespace
metadata.uid
metadata.annotations['<KEY>']
metadata.labels['<KEY>']
spec.serviceAccountName
spec.nodeName
status.hostIP
status.podIP
metadata.labels
metadata.annotations
Related[edit]
- Read Expose Pod Information to Containers Through Files, https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/
- Kubernetes, env:
See also[edit]
Advertising: