ResourceQuota
apiVersion: v1
import "k8s.io/api/core/v1"
ResourceQuota
ResourceQuota sets aggregate quota restrictions enforced per namespace
-
apiVersion: v1
-
kind: ResourceQuota
-
status (
Status defines the actual enforced quota and its current usage.
ResourceQuotaSpec
ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
-
hard (map[string]
hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
-
scopeSelector (ScopeSelector)
scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.
-
scopeSelector.matchExpressions ([]ScopedResourceSelectorRequirement)
A list of scope selector requirements by scope of the resources.
A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.
-
scopeSelector.matchExpressions.operator (string), required
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
Possible enum values:
"DoesNotExist"
"Exists"
"In"
"NotIn"
-
scopeSelector.matchExpressions.scopeName (string), required
The name of the scope that the selector applies to.
Possible enum values:
"BestEffort"
Match all pod objects that have best effort quality of service"CrossNamespacePodAffinity"
Match all pod objects that have cross-namespace pod (anti)affinity mentioned. This is a beta feature enabled by the PodAffinityNamespaceSelector feature flag."NotBestEffort"
Match all pod objects that do not have best effort quality of service"NotTerminating"
Match all pod objects where spec.activeDeadlineSeconds is nil"PriorityClass"
Match all pod objects that have priority class mentioned"Terminating"
Match all pod objects where spec.activeDeadlineSeconds >=0
-
scopeSelector.matchExpressions.values ([]string)
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
-
-
-
scopes ([]string)
A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.
ResourceQuotaStatus
ResourceQuotaStatus defines the enforced hard limits and observed use.
-
hard (map[string]
Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
-
used (map[string]
Used is the current observed total usage of the resource in the namespace.
ResourceQuotaList
ResourceQuotaList is a list of ResourceQuota items.
-
apiVersion: v1
-
kind: ResourceQuotaList
-
items ([]
Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
Operations
get
read the specified ResourceQuota
HTTP Request
GET /api/v1/namespaces/{namespace}/resourcequotas/{name}
Parameters
-
name (in path): string, required
name of the ResourceQuota
-
namespace (in path): string, required
-
pretty (in query): string
Response
200 (
401: Unauthorized GET /api/v1/namespaces/{namespace}/resourcequotas/{name}/status name (in path): string, required name of the ResourceQuota namespace (in path): string, required pretty (in query): string 200 (
401: Unauthorized GET /api/v1/namespaces/{namespace}/resourcequotas namespace (in path): string, required allowWatchBookmarks (in query): boolean continue (in query): string fieldSelector (in query): string labelSelector (in query): string limit (in query): integer pretty (in query): string resourceVersion (in query): string resourceVersionMatch (in query): string timeoutSeconds (in query): integer watch (in query): boolean 200 (
401: Unauthorized GET /api/v1/resourcequotas allowWatchBookmarks (in query): boolean continue (in query): string fieldSelector (in query): string labelSelector (in query): string limit (in query): integer pretty (in query): string resourceVersion (in query): string resourceVersionMatch (in query): string timeoutSeconds (in query): integer watch (in query): boolean 200 (
401: Unauthorized POST /api/v1/namespaces/{namespace}/resourcequotas namespace (in path): string, required dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string pretty (in query): string 200 (
201 (
202 (
401: Unauthorized PUT /api/v1/namespaces/{namespace}/resourcequotas/{name} name (in path): string, required name of the ResourceQuota namespace (in path): string, required dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string pretty (in query): string 200 (
201 (
401: Unauthorized PUT /api/v1/namespaces/{namespace}/resourcequotas/{name}/status name (in path): string, required name of the ResourceQuota namespace (in path): string, required dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string pretty (in query): string 200 (
201 (
401: Unauthorized PATCH /api/v1/namespaces/{namespace}/resourcequotas/{name} name (in path): string, required name of the ResourceQuota namespace (in path): string, required dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string force (in query): boolean pretty (in query): string 200 (
201 (
401: Unauthorized PATCH /api/v1/namespaces/{namespace}/resourcequotas/{name}/status name (in path): string, required name of the ResourceQuota namespace (in path): string, required dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string force (in query): boolean pretty (in query): string 200 (
201 (
401: Unauthorized DELETE /api/v1/namespaces/{namespace}/resourcequotas/{name} name (in path): string, required name of the ResourceQuota namespace (in path): string, required dryRun (in query): string gracePeriodSeconds (in query): integer pretty (in query): string propagationPolicy (in query): string 200 (
202 (
401: Unauthorized DELETE /api/v1/namespaces/{namespace}/resourcequotas namespace (in path): string, required continue (in query): string dryRun (in query): string fieldSelector (in query): string gracePeriodSeconds (in query): integer labelSelector (in query): string limit (in query): integer pretty (in query): string propagationPolicy (in query): string resourceVersion (in query): string resourceVersionMatch (in query): string timeoutSeconds (in query): integer 200 (
401: Unauthorizedget
read status of the specified ResourceQuotaHTTP Request
Parameters
Response
list
list or watch objects of kind ResourceQuotaHTTP Request
Parameters
Response
list
list or watch objects of kind ResourceQuotaHTTP Request
Parameters
Response
create
create a ResourceQuotaHTTP Request
Parameters
Response
update
replace the specified ResourceQuotaHTTP Request
Parameters
Response
update
replace status of the specified ResourceQuotaHTTP Request
Parameters
Response
patch
partially update the specified ResourceQuotaHTTP Request
Parameters
Response
patch
partially update status of the specified ResourceQuotaHTTP Request
Parameters
Response
delete
delete a ResourceQuotaHTTP Request
Parameters
Response
deletecollection
delete collection of ResourceQuotaHTTP Request
Parameters
Response