Resource quota

236

A resource quota, defined by a ResourceQuota object, provides constraints that limit aggregate resource consumption per namespace. It can limit the quantity of objects that can be created in a namespace by type, as well as the total amount of compute resources that may be consumed by resources in that namespace.

Stuff you wanna know:

  1. When several users or teams share a cluster with a fixed number of nodes, there is a concern that one team could use more than its fair share of resources. Resource quotas are a tool for administrators to address this concern.
  2. The name of a ResourceQuota object must be a valid DNS subdomain name.
  3. Resource Quota support is enabled by default for many Kubernetes distributions. It is enabled when the API server --enable-admission-plugins= flag has ResourceQuota as one of its arguments.
  4. A resource quota is enforced in a particular namespace when there is a ResourceQuota in that namespace.
  5. You can limit the total sum of compute resources that can be requested in a given namespace.
  6. You can limit the total sum of storage resources that can be requested in a given namespace. You can also limit consumption of storage resources based on associated storage-class.
  7. Each quota can have an associated set of scopes. A quota will only measure usage for a resource if it matches the intersection of enumerated scopes.
  8. When a scope is added to the quota, it limits the number of resources it supports to those that pertain to the scope. Resources specified on the quota outside of the allowed set results in a validation error.
  9. When allocating compute resources, each container may specify a request and a limit value for either CPU or memory. The quota can be configured to quota either value.
  10. Kubectl supports creating, updating, and viewing quotas.
  11. Kubectl supports object count quota for all standard namespaced resources.
  12. ResourceQuotas are independent of the cluster capacity.

 

More stuff: