Skip to content

Files

Latest commit

f69793d · Jul 15, 2024

History

History
17 lines (11 loc) · 1.32 KB

k8s-best-practices-requests-limits.adoc

File metadata and controls

17 lines (11 loc) · 1.32 KB

Requests/Limits

Requests and limits provide a way for a workload developer to ensure they have adequate resources available to run the application. Requests can be made for storage, memory, CPU and so on. These requests and limits can be enforced by quotas. Quotas can be used as a way to enforce requests and limits. See Resource quotas per project for more information.

Nodes can be overcommitted which can affect the strategy of request/limit implementation. For example, when you need guaranteed capacity, use quotas to enforce. In a development environment, you can overcommit where a trade-off of guaranteed performance for capacity is acceptable. Overcommitment can be done on a project, node or cluster level.

Important
Workload requirement

Pods must define requests and limits values for CPU and memory.