Exploring the Types of Quotas
Explore the several types/groups of quotas.
We can divide quotas into several groups.
1. Compute resource quotas
Compute resource quotas limit the total sum of the compute resources. They are as follows:
Resource Name | Description |
---|---|
cpu |
Across all Pods in a non-terminal state, the sum of CPU requests cannot exceed this value. |
limits.cpu |
Across all Pods in a non-terminal state, the sum of CPU limits cannot exceed this value. |
limits.memory |
Across all Pods in a non-terminal state, the sum of memory limits cannot exceed this value. |
memory |
Across all Pods in a non-terminal state, the sum of memory requests cannot exceed this value. |
requests.cpu |
Across all Pods in a non-terminal state, the sum of CPU requests cannot exceed this value. |
requests.memory |
Across all Pods in a non-terminal state, the sum of memory requests cannot exceed this value. |
2. Storage resource quotas
Storage resource quotas limit the total sum of the storage resources. We did not yet explore storage (beyond a few local examples), so you might want to keep the list that follows for future reference:
Resource Name | Description |
---|---|
requests.storage |
Across all persistent volume claims, the sum of storage requests cannot exceed this value. |
persistentvolumeclaims |
This is the total number of persistent volume claims that can exist in the namespace. |
[PREFIX]/requests.storage |
Across all persistent volume claims associated with the storage-class-name, the sum of storage requests cannot exceed this value. |
[PREFIX]/persistentvolumeclaims |
Across all persistent volume claims associated with the storage-class-name, the total number of persistent volume claims that can exist in the namespace. |
requests.ephemeral-storage |
Across all Pods in the namespace, the sum of local ephemeral storage requests cannot exceed this value. |
limits.ephemeral-storage |
Across all Pods in the namespace, the sum of local ephemeral storage limits cannot exceed this value. |
Note: Please note that
[PREFIX]
should be replaced with<storage-class-name>.storageclass.storage.k8s.io
.
3. Object count quotas
Object count quotas limit the number of objects of a given type. They are as follows:
Resource Name | Description |
---|---|
configmaps |
The total number of ConfigMaps that can exist in the namespace |
persistentvolumeclaims |
The total number of persistent volume claims that can exist in the namespace |
pods |
The total number of Pods in a non-terminal state that can exist in the namespace. A Pod is in a terminal state if the status phase (Failed, Succeeded) is true. |
replicationcontrollers |
The total number of replication controllers that can exist in the namespace |
resourcequotas |
The total number of resource quotas that can exist in the namespace |
services |
The total number of services that can exist in the namespace |
services.loadbalancers |
The total number of Services of type load balancer that can exist in the namespace |
services.nodeports |
The total number of Services of type node port that can exist in the namespace |
secrets |
The total number of Secrets that can exist in the namespace |
Get hands-on with 1400+ tech skills courses.