Container Environment
The Kubernetes Container environment provides several important resources to Containers:
- A filesystem, which is a combination of an and one or more volumes.
- Information about other objects in the cluster.
The Pod name and namespace are available as environment variables through the downward API.
Cluster information
A list of all services that were running when a Container was created is available to that Container as environment variables. This list is limited to services within the same namespace as the new Container’s Pod and Kubernetes control plane services.
Services have dedicated IP addresses and are available to the Container via DNS, if DNS addon is enabled.
What’s next
- Learn more about Container lifecycle hooks.