<p>I created two deployments <em>(deployment happening with a kubenetes operator and there are other activities, like service creation, secret creation etc., also there though i feel they are not related to this error)</em> and expected for the pods to come up but pods dint come up.
when I checked the events I found there is below error for both the pods(i am listing one)</p>
<pre><code>60m         Warning   FailedCreate        replicaset/sast-edge-5577bdcf6c      Error creating: pods &quot;sas-edge-5577bdcf6c-94ps9&quot; is forbidden: failed quota: app-xxxx-stable-biw9247u7z: must specify limits.memory
</code></pre>
<p>When I describe pod I see that the limits have been specified</p>
<pre><code> image: registry.xxx.xxxx.com/xxkl/xxx-xxxx:1.4
        imagePullPolicy: IfNotPresent
        name: nsc-core
        ports:
        - containerPort: 3000
          protocol: TCP
        resources:
          limits:
            memory: 500Mi
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
</code></pre>
<p>I also checked the quota for the NS</p>
<pre><code>Name:          app-xxxx-stable-biw9247u7z
Namespace:     app-xxxx-stable-biw9247u7z
Resource       Used    Hard
--------       ----    ----
limits.memory  4072Mi  8Gi
</code></pre>
<p>I am not sure why kubernetes is not the specified resource limit. Need help.</p>

<p><code>Forbidden Failed quota</code> error comes when any of the containers in the pod does not have <code>limits</code> and <code>requests</code> in the spec and that includes init containers too. Adding <code>limits</code> and <code>requests</code> to all containers should solve the error.</p>
