<p>when creating a Pod with one container. The Container has a memory request of 200 MiB and a memory limit of 400 MiB. Look at configuration file for the creating Pod:</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: memory-demo
  namespace: mem-example
spec:
  containers:
  - name: memory-demo-ctr
    image: polinux/stress
    resources:
      requests:
        memory: &quot;200Mi&quot;
      limits:
        memory: &quot;400Mi&quot;
    command: [&quot;stress&quot;]
    args: [&quot;--vm&quot;, &quot;1&quot;, &quot;--vm-bytes&quot;, &quot;150M&quot;, &quot;--vm-hang&quot;, &quot;1]
</code></pre>
<p>Above yaml not working as intended, The args section in the configuration file not providing arguments for the Container when it starting.</p>
<p>Tried to create kubernetes pod memory limits &amp; requests &amp; seems fail to create.</p>

KMS
<p>Change your <code>args: [&quot;--vm&quot;, &quot;1&quot;, &quot;--vm-bytes&quot;, &quot;150M&quot;, &quot;--vm-hang&quot;, &quot;1&quot;]</code>. your yaml will work.</p>
