Skip to the content.

Kubernetes - Resource Requirements ๐Ÿ’พ

Description ๐Ÿ‘€

Resources are the compute, storage, and network resources that are required by containers. Kubernetes allows you to specify the amount of resources that a container requires. This allows Kubernetes to schedule containers on nodes that have enough resources to run the containers. Kubernetes also allows you to specify the limits of the resources that a container can use. This allows Kubernetes to prevent containers from using more resources than they are allowed to use.

Limits and Requests for resources are specified in the resources section of a containerโ€™s spec. The resources section has two sub-sections: requests and limits. The requests section specifies the minimum resources that a container needs to run. The limits section specifies the maximum resources that a container can use.

Kubernetes allows Pods to specify default resources for a container. These default resources are used when a container does not specify its own resource requirements. The default resources are specified in the spec section of a Podโ€™s spec.


Examples ๐Ÿงฉ


โ†ฉ๏ธ