<p>If you do not define a request/limit for your cpu and memory in pod, deployment or stateful or namespace default, what will be the request and limit for that pod's cpu and memory?</p>

<p>The default behavior will be to <strong>use all available resources</strong> on the node the Pod is deployed to. This hard fact can be gleaned from the K8s documentation at several places, e.g. <a href="https://kubernetes.io/docs/concepts/policy/limit-range/" rel="nofollow noreferrer">here</a>.</p>
<p>So, one should always set limits on Pods. One can enforce defaults with <a href="https://kubernetes.io/docs/concepts/policy/limit-range/" rel="nofollow noreferrer">Limit Ranges</a> and ensure that Pods within a namespace don't starve other namespaces of resources with <a href="https://kubernetes.io/docs/concepts/policy/resource-quotas/" rel="nofollow noreferrer">Resource Quotas</a>.</p>
