Hi Team, I have a questions what are default values for Resources Request cpu an . . .

Sebastian Nazarian:
Hi Team, I have a questions what are default values for Resources Request cpu and Memory ; Resources Limits cpu and Memory

Mohamed Ayman:
Hello @Sebastian Nazarian,
a memory request of 256MiB and a memory limit of 512MiB.
a CPU request of 0.5 and a default CPU limit of 1

Sebastian Nazarian:
ohhh thanks! if I not put this variables

Sebastian Nazarian:
k8s put this values isn’t ?

Mohamed Ayman:
Yes, if any container in the Pod does not specify its own values for CPU&Memory request and CPU&memory limit, then the control plane applies default values.

Sebastian Nazarian:
0.5m ?

Sebastian Nazarian:
for cpu?

unnivkn:
Hi @Sebastian Nazarian please go through this link: https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/_print/

Sebastian Nazarian:
Hi @unmesh rathore yes I saw this document but my question is What values are default? for example If I don’t put Request or Limits. Where can I see the default values?

Sebastian Nazarian:
For example: If I execute kubectl get pods xxxxx --output=yaml.

Sebastian Nazarian:

image.png

unnivkn:
Hi @Sebastian Nazarian you won’t be able to get the value if you are not specified any requests/limits, that indicates the pod can utilize max up to the node’s resources. And this is not the recommended way. However if you need to get the details, you can use monitoring tools like Prometheus & Grafana. As I said above, in the above link you have the option to use limitRange, which you can use in your pods to have the default values.