Container Environment

    The Kubernetes Container environment provides several important resources to Containers:

    • A filesystem, which is a combination of an image and one or more .
    • 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. Those environment variables match the syntax of Docker links.

    Services have dedicated IP addresses and are available to the Container via DNS, if DNS addon is enabled.

    What’s next