<p>I have a resource block for my pod like -</p>
<blockquote>
<pre><code>   resources:
    limits:
      cpu: 3000m
      memory: 512Mi
    requests:
      memory: 512Mi
</code></pre>
</blockquote>
<p>does it by default take request allocation for CPU (i.e 3000m) which is mentioned in resource limits (3000m). Because in my case it taking 3000m as default cpu in request even though I have not mentioned it.</p>

gkcld
<p>What you observed is correct, K8s will assign the requests.cpu that matches the limits.cpu when you only define the limits.cpu and not the requests.cpu. Official document <a href="https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/#if-you-specify-a-cpu-limit-but-do-not-specify-a-cpu-request" rel="nofollow noreferrer">here</a>.</p>
