<p>When a container in a Pod is created in a Kubernetes cluster with a limit and request set, how aware can that container be of those limits and requests? Would an application running inside the container be able to get these limits and requests to, for example, reduce the amount of resources it uses if the limits and requests were particularly low?</p>

<ul>
<li>Kubernetes version: 1.8</li>
<li>Container runtime: Docker</li>
<li>Docker version: 1.12.6</li>
</ul>

<p>The <a href="https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/" rel="nofollow noreferrer">Downwards API</a> can be used to pass the requests and limits to the container process as environment variables</p>
