https://kubernetes.io/docs/concepts/workloads/pods/downward-api/
Downward API | Kubernetes
There are two ways to expose Pod and container fields to a running container: environment variables, and as files that are populated by a special volume type....
downward apikubernetes