Interview Prep/Kubernetes/Configuration & Storage

What is the Downward API?

IntermediateConceptConfiguration & Storage
Answer

It exposes Pod and container metadata to the container without calling the API, as env vars or files: Pod name, namespace, IP, labels, annotations, node name, and resource requests/limits.

env:
- name: POD_NAME
  valueFrom: { fieldRef: { fieldPath: metadata.name } }
- name: MEM_LIMIT
  valueFrom: { resourceFieldRef: { containerName: app, resource: limits.memory } }
All Kubernetes questions Roadmap: Kubernetes core

More on Configuration & Storage