Skip to content

Commit a527c5b

Browse files
authored
Update k8s-best-practices-requests-limits.adoc
1 parent df0c537 commit a527c5b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

modules/k8s-best-practices-requests-limits.adoc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
[id="k8s-best-practices-requests-limits"]
22
= Requests/Limits
33

4-
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 link:https://docs.openshift.com/container-platform/latest/applications/quotas/quotas-setting-per-project.html[Resource quotas per project] for more information.
4+
Kubernetes provides mechanisms for defining resource usage per container:
5+
Requests: The guaranteed minimum amount of a resource (e.g., CPU, memory). Used by the scheduler.
6+
7+
8+
Limits: The maximum amount a container is allowed to consume. Enforced by the kubelet.
9+
10+
11+
Quotas: Enforce aggregate resource usage at the namespace/project level to prevent resource overuse.
12+
See: OpenShift Resource Quotas Per Project
13+
14+
See link:https://docs.openshift.com/container-platform/latest/applications/quotas/quotas-setting-per-project.html[Resource quotas per project] for more information.
515

616
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.
717

0 commit comments

Comments
 (0)