Resource management
Kubernetes allows us to specify the resource requirements of a container in the pod specification, which basically refers to how many resources a container needs.
kube-scheduler
uses the resource request information that you specify for a container in a pod to decide on which worker node to schedule the pod. It’s up to kubelet
to enforce these resource limits when you specify them for the containers in the pod so that the running container goes beyond a set limit, as well as reserves at least the requested amount of a system resource for a container to use.
It usually gives us the following values:
resources.limits.cpu
is the resource limit set on CPU usage.resources.limits.memory
is the resource limit set on memory usage.resources.requests.cpu
is the minimum CPU usage requested to allow your application to be up and running.resources.requests.memory
is the minimum memory usage requested to allow your application to be up and...