manukumar:
Hi
I created one namespace then I am not set any default resources on that namespace but i try to create a pod, now my question that pod, where its took resources, can any tell me, please
Ramkumar Nagaraj:
question is not clear
Ramkumar Nagaraj:
check this - https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#how-pods-with-resource-requests-are-scheduled
Ramkumar Nagaraj:
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#how-pods-with-resource-limits-are-run
manukumar:
i created one namespace then i am not set any default resources like (ram, and cpu) but i am deployed pod on the namespace in the condition that the pod where is taken to resources
Ramkumar Nagaraj:
this is how k8s will assign default resource-limits if there is any - https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/
Ly Quoc Bao:
Hi @manukumar,
If you config Limit Ranges for a namespace, this mean you config default values request and limit resource per Pod or Container in this namespace. (https://kubernetes.io/docs/concepts/policy/limit-range/)
If you config Resource Quotas for a namespace, this mean you config limit resource which this namespace can not exceed. (https://kubernetes.io/docs/concepts/policy/resource-quotas/)
In your case, if you don’t config Limit Ranges and Resource Quotas for the namespace and you also don’t config resource in pod then your Pod or Containers can consume unlimited CPU and memory.
To sum up, these configuration below for setting request and limit resource and default values. This means that unless you explicitly define limits, your containers can consume unlimited CPU and memory. Hope this help.