Kubernetes 101 : Maximum and minimum resources for a pod - LimitRange -
We can specify the minimum and maximum CPU and memory consumption for pods in the LimitRange kubernetes object.
The variable "spec.limits[].min" and "spec.limits[].max" are the ones we use in the Yaml file of the LimitRange object.
If the pod doesn't respect the minimum and maximum values, it might get stopped.
Below is a Yaml file of the LimitRange object with minimum and maximum values for the CPU and memory:
We could apply these limits in the "ns_1" namespace, using the below command:
Comments