<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><a href="https://stackoverflow.com/questions/42187085/check-mem-limit-within-a-docker-container">Check mem_limit within a docker container</a> with the tl;dr of</p>

<pre><code>cat /sys/fs/cgroup/memory/memory.limit_in_bytes
</code></pre>

<p>will show the limit, and then presumably the <code>requests</code> value is the allocated memory the container started with, but I would need to verify that assumption</p>

<p>I personally don't even understand the unit when trying to apply <code>limits: cpu:</code> so I for sure wouldn't know how to verify that value</p>
