Kubernetes 101 : Resource requests for the pods



Resource requests are the "wished" resources that a pod wants to have in regard to - memory and CPU -

We could state them through the command line, when creating a deployment for our nginx pods as below:


Then, we set the resource requests as below:


We could also state them in the
deployment Yaml file, as we can see in the below example:


Remark:

- "0.5" CPU means "500" millicores, or half of the CPU resources in our case.
- "2Gi" is roughly the equivalent of "2.147 GB".

Comments

Leave as a comment:

Archive