<p>When we create a yml for the replication controller, we can give labels for the pod that is being created.</p>

<pre><code>apiVersion: v1
kind: ReplicationController
metadata:
  name: redis
spec:
  template:
    metadata:
      labels:
        app: redis
        tier: backend
</code></pre>

<p>Can the containers that reside in this pod access those label values?</p>

<p>Check out the <a href="https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/" rel="nofollow noreferrer">Downward API</a>, which allows the container to know more about itself.</p>
