<p>I am trying to run a test pod with OpenShift CLI:</p>
<pre><code>$oc run nginx --image=nginx --limits=cpu=2,memory=4Gi
deploymentconfig.apps.openshift.io/nginx created

$oc describe deploymentconfig.apps.openshift.io/nginx
Name:       nginx
Namespace:  myproject
Created:    12 seconds ago
Labels:     run=nginx
Annotations:    &lt;none&gt;
Latest Version: 1
Selector:   run=nginx
Replicas:   1
Triggers:   Config
Strategy:   Rolling
Template:
Pod Template:
  Labels:   run=nginx
  Containers:
   nginx:
    Image:  nginx
    Port:   &lt;none&gt;
    Host Port:  &lt;none&gt;
    Limits:
      cpu:      2
      memory:       4Gi
    Environment:    &lt;none&gt;
    Mounts:     &lt;none&gt;
  Volumes:      &lt;none&gt;

Deployment #1 (latest):
    Name:       nginx-1
    Created:    12 seconds ago
    Status:     New
    Replicas:   0 current / 0 desired
    Selector:   deployment=nginx-1,deploymentconfig=nginx,run=nginx
    Labels:     openshift.io/deployment-config.name=nginx,run=nginx
    Pods Status:    0 Running / 0 Waiting / 0 Succeeded / 0 Failed

Events:
  Type      Reason          Age         From                Message
  ----      ------          ----            ----                -------
  Normal    DeploymentCreated   12s         deploymentconfig-controller Created new replication controller &quot;nginx-1&quot; for version 1
  Warning   FailedCreate        1s (x12 over 12s)   deployer-controller     Error creating deployer pod: pods &quot;nginx-1-deploy&quot; is forbidden: failed quota: quota-svc-myproject: must specify limits.cpu,limits.memory
</code></pre>
<p>I get &quot;must specify limits.cpu,limits.memory&quot; error, despite both limits being present in the same <strong>describe</strong> output.</p>
<p>What might be the problem and how do I fix it?</p>

Hohol
<p>I found a solution!</p>
<p>Part of the error message was &quot;Error creating deployer pod&quot;. It means that the problem is not with my pod, but with the <strong>deployer pod</strong> which performs my pod deployment.
It seems the quota in my project affects deployer pods as well.
I couldn't find a way to set deployer pod limits with CLI, so I've made a DeploymentConfig.</p>
<pre><code>kind: &quot;DeploymentConfig&quot;
apiVersion: &quot;v1&quot;
metadata:
  name: &quot;test-app&quot;
spec:
  template: 
    metadata:
      labels:
        name: &quot;test-app&quot;
    spec:
      containers:
        - name: &quot;test-app&quot;
          image: &quot;nginxinc/nginx-unprivileged&quot;
          resources:
            limits:
              cpu: &quot;2000m&quot;
              memory: &quot;20Gi&quot;
          ports:
            - containerPort: 8080
              protocol: &quot;TCP&quot;
  replicas: 1 
  selector:
    name: &quot;test-app&quot;
  triggers:
    - type: &quot;ConfigChange&quot; 
    - type: &quot;ImageChange&quot; 
      imageChangeParams:
        automatic: true
        containerNames:
          - &quot;test-app&quot;
        from:
          kind: &quot;ImageStreamTag&quot;
          name: &quot;nginx-unprivileged:latest&quot;
  strategy: 
    type: &quot;Rolling&quot;
    resources:
      limits:
        cpu: &quot;2000m&quot;
        memory: &quot;20Gi&quot;
</code></pre>
<p>A you can see, two sets of limitations are specified here: for container and for deployment strategy.</p>
<p>With this configuration it worked fine!</p>
