apiVersion: v1
import "k8s.io/api/core/v1"
ResourceQuota 设置每个命名空间强制执行的聚合配额限制。
apiVersion: v1
kind: ResourceQuota
metadata (ObjectMeta)
标准的对象元数据。 更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec (ResourceQuotaSpec)
spec 定义所需的配额。
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
status (ResourceQuotaStatus)
status 定义实际执行的配额及其当前使用情况。
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
ResourceQuotaSpec 定义为 Quota 强制执行所需的硬限制。
hard (map[string]Quantity)
hard 是每种指定资源所需的硬性限制集合。
更多信息: https://kubernetes.io/docs/concepts/policy/resource-quotas/
scopeSelector (ScopeSelector)
scopeSelector 也是一组过滤器的集合,和 scopes 类似,
必须匹配配额所跟踪的每个对象,但使用 ScopeSelectorOperator 结合可能的值来表示。
对于要匹配的资源,必须同时匹配 scopes 和 scopeSelector(如果在 spec 中设置了的话)。
scope 选择算符表示的是由限定范围的资源选择算符进行逻辑与运算得出的结果。
scopeSelector.matchExpressions ([]ScopedResourceSelectorRequirement)
**原子:将在合并期间被替换**
按资源范围划分的范围选择算符需求列表。
限定范围的资源选择算符需求是一种选择算符,包含值、范围名称和将二者关联起来的运算符。
scopeSelector.matchExpressions.operator (string),必需
表示范围与一组值之间的关系。有效的运算符为 In、NotIn、Exists、DoesNotExist。
可能的枚举值:
"DoesNotExist""Exists""In""NotIn"scopeSelector.matchExpressions.scopeName (string),必需
选择器所适用的范围的名称。
可能的枚举值:
"BestEffort" 匹配所有 BestEffort 服务质量的 Pod 对象"CrossNamespacePodAffinity" 匹配所有提到跨命名空间 Pod(反)亲和性的 Pod 对象"NotBestEffort" 匹配所有非 BestEffort 服务质量的 Pod 对象"NotTerminating" 匹配所有 spec.activeDeadlineSeconds 为 nil 的 Pod 对象"PriorityClass" 匹配所有指定了优先级类的 Pod 对象"Terminating" 匹配所有 spec.activeDeadlineSeconds >=0 的 Pod 对象"VolumeAttributesClass" 匹配所有指定了卷属性类的 PVC 对象scopeSelector.matchExpressions.values ([]string)
**原子:将在合并期间被替换**
字符串值数组。
如果操作符是 In 或 NotIn,values 数组必须是非空的。
如果操作符是 Exists 或 DoesNotExist,values 数组必须为空。
该数组将在策略性合并补丁操作期间被替换。
scopes ([]string)
原子:将在合并期间被替换
一个匹配被配额跟踪的所有对象的过滤器集合。 如果没有指定,则默认匹配所有对象。
ResourceQuotaStatus 定义硬性限制和观测到的用量。
hard (map[string]Quantity)
hard 是每种指定资源所强制实施的硬性限制集合。
更多信息: https://kubernetes.io/docs/concepts/policy/resource-quotas/
used (map[string]Quantity)
used 是当前命名空间中所观察到的资源总用量。
ResourceQuotaList 是 ResourceQuota 列表。
apiVersion:v1
kind:ResourceQuotaList
metadata (ListMeta)
标准列表元数据。 更多信息: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
items ([]ResourceQuota),必需
items 是 ResourceQuota 对象的列表。更多信息:
https://kubernetes.io/docs/concepts/policy/resource-quotas/
get 读取指定的 ResourceQuotaGET /api/v1/namespaces/{namespace}/resourcequotas/{name}
name (路径参数): string, 必需
ResourceQuota 的名称。
namespace (路径参数): string, 必需
pretty (查询参数): string
200 (ResourceQuota): OK
401: Unauthorized
get 读取指定的 ResourceQuota 的状态GET /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
name (路径参数): string, 必需
ResourceQuota 的名称。
namespace (路径参数): string, 必需
pretty (查询参数): string
200 (ResourceQuota): OK
401: Unauthorized
list 列出或监视 ResourceQuota 类别的对象GET /api/v1/namespaces/{namespace}/resourcequotas
namespace(路径参数): string, 必需
allowWatchBookmarks(查询参数): boolean
continue(查询参数): string
fieldSelector(查询参数): string
labelSelector(查询参数): string
limit(查询参数): integer
pretty(查询参数): string
resourceVersion(查询参数): string
resourceVersionMatch(查询参数): string
sendInitialEvents(查询参数): boolean
timeoutSeconds(查询参数): integer
watch(查询参数): boolean
200 (ResourceQuotaList): OK
401: Unauthorized
list 列出或监视 ResourceQuota 类别的对象GET /api/v1/resourcequotas
allowWatchBookmarks(查询参数): boolean
continue(查询参数): string
fieldSelector(查询参数): string
labelSelector(查询参数): string
limit(查询参数): integer
pretty(查询参数): string
resourceVersion(查询参数): string
resourceVersionMatch(查询参数): string
sendInitialEvents(查询参数): boolean
timeoutSeconds(查询参数): integer
watch(查询参数): boolean
200 (ResourceQuotaList): OK
401: Unauthorized
create 创建一个 ResourceQuotaPOST /api/v1/namespaces/{namespace}/resourcequotas
namespace (路径参数): string, 必需
body: ResourceQuota, 必需
dryRun (查询参数): string
fieldManager (查询参数): string
fieldValidation (查询参数): string
pretty (查询参数): string
200 (ResourceQuota): OK
201 (ResourceQuota): Created
202 (ResourceQuota): Accepted
401: Unauthorized
update 更新指定的 ResourceQuotaPUT /api/v1/namespaces/{namespace}/resourcequotas/{name}
name (路径参数): string, 必需
ResourceQuota 的名称。
namespace (路径参数): string, 必需
body: ResourceQuota, 必需
dryRun (查询参数): string
fieldManager (查询参数): string
fieldValidation (查询参数): string
pretty (查询参数): string
200 (ResourceQuota): OK
201 (ResourceQuota): Created
401: Unauthorized
update 更新指定 ResourceQuota 的状态PUT /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
name (路径参数): string, 必需
ResourceQuota 的名称。
namespace (路径参数): string, 必需
body: ResourceQuota, 必需
dryRun (查询参数): string
fieldManager (查询参数): string
fieldValidation (查询参数): string
pretty (查询参数): string
200 (ResourceQuota): OK
201 (ResourceQuota): Created
401: Unauthorized
patch 部分更新指定的 ResourceQuotaPATCH /api/v1/namespaces/{namespace}/resourcequotas/{name}
name (路径参数): string, 必需
ResourceQuota 的名称。
namespace (路径参数): string, 必需
body: Patch, 必需
dryRun (查询参数): string
fieldManager (查询参数): string
fieldValidation (查询参数): string
force (查询参数): boolean
pretty (查询参数): string
200 (ResourceQuota): OK
201 (ResourceQuota): Created
401: Unauthorized
patch 部分更新指定 ResourceQuota 的状态PATCH /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
name (路径参数): string, 必需
ResourceQuota 的名称。
namespace (路径参数): string, 必需
body: Patch, 必需
dryRun (查询参数): string
fieldManager (查询参数): string
fieldValidation (查询参数): string
force (查询参数): boolean
pretty (查询参数): string
200 (ResourceQuota): OK
201 (ResourceQuota): Created
401: Unauthorized
delete 删除 ResourceQuotaDELETE /api/v1/namespaces/{namespace}/resourcequotas/{name}
name (路径参数): string, 必需
ResourceQuota 的名称。
namespace (路径参数): string, 必需
body: DeleteOptions
dryRun (查询参数): string
gracePeriodSeconds (查询参数): integer
ignoreStoreReadErrorWithClusterBreakingPotential (查询参数): boolean
pretty (查询参数): string
propagationPolicy (查询参数): string
200 (ResourceQuota): OK
202 (ResourceQuota): Accepted
401: Unauthorized
deletecollection 删除 ResourceQuota 的集合DELETE /api/v1/namespaces/{namespace}/resourcequotas
namespace (路径参数): string, 必需
body: DeleteOptions
continue (查询参数): string
dryRun (查询参数): string
fieldSelector (查询参数): string
gracePeriodSeconds (查询参数): integer
ignoreStoreReadErrorWithClusterBreakingPotential (查询参数): boolean
labelSelector (查询参数): string
limit (查询参数): integer
pretty (查询参数): string
propagationPolicy (查询参数): string
resourceVersion (查询参数): string
resourceVersionMatch (查询参数): string
sendInitialEvents (查询参数): boolean
timeoutSeconds (查询参数): integer
200 (Status): OK
401: Unauthorized