ResourceQuota
apiVersion: v1
import "k8s.io/api/core/v1"
ResourceQuota
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
ResourceQuotaSpec 定义了要为配额强制执行的所需硬限制。
hard (map[string]Quantity)
hard 是每个命名资源的所需硬限制集。更多信息:https://kubernetes.ac.cn/docs/concepts/policy/resource-quotas/
scopeSelector (ScopeSelector)
scopeSelector 也是一组过滤器,例如配额跟踪的每个对象必须匹配的范围,但使用 ScopeSelectorOperator 与可能的值组合来表示。对于要匹配的资源,范围和 scopeSelector(如果在 spec 中指定)都必须匹配。
scopeSelector.matchExpressions ([]ScopedResourceSelectorRequirement)
资源范围的范围选择器要求列表。
范围资源选择器要求是一个选择器,它包含值、范围名称和一个运算符,该运算符将范围名称和值相关联。
scopeSelector.matchExpressions.operator (string), required
表示范围与一组值的关系。有效的运算符是 In、NotIn、Exists、DoesNotExist。
scopeSelector.matchExpressions.scopeName (string), required
选择器应用到的范围的名称。
scopeSelector.matchExpressions.values ([]string)
字符串值数组。如果运算符是 In 或 NotIn,则 values 数组必须非空。如果运算符是 Exists 或 DoesNotExist,则 values 数组必须为空。此数组在策略合并修补期间被替换。
scopes ([]string)
一组必须匹配配额跟踪的每个对象的过滤器。如果未指定,则配额匹配所有对象。
ResourceQuotaStatus
ResourceQuotaStatus 定义了强制执行的硬限制和观察到的使用情况。
hard (map[string]Quantity)
Hard 是每个命名资源的强制执行的硬限制集。更多信息:https://kubernetes.ac.cn/docs/concepts/policy/resource-quotas/
used (map[string]Quantity)
Used 是命名空间中资源的当前观察到的总使用量。
ResourceQuotaList
ResourceQuotaList 是 ResourceQuota 项目的列表。
apiVersion: v1
kind: ResourceQuotaList
metadata (ListMeta)
标准列表元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
items ([]ResourceQuota), required
Items 是 ResourceQuota 对象的列表。更多信息:https://kubernetes.ac.cn/docs/concepts/policy/resource-quotas/
操作
get
读取指定的 ResourceQuota
HTTP 请求
GET /api/v1/namespaces/{namespace}/resourcequotas/{name}
参数
name (在路径中): string, required
ResourceQuota 的名称
namespace (在路径中): string, required
pretty (在查询中): string
响应
200 (ResourceQuota): OK
401: 未经授权
get
读取指定 ResourceQuota 的状态
HTTP 请求
GET /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
参数
name (在路径中): string, required
ResourceQuota 的名称
namespace (在路径中): string, required
pretty (在查询中): string
响应
200 (ResourceQuota): OK
401: 未经授权
list
列出或监视 ResourceQuota 类型的对象
HTTP 请求
GET /api/v1/namespaces/{namespace}/resourcequotas
参数
namespace (在路径中): string, required
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: 未经授权
list
列出或监视 ResourceQuota 类型的对象
HTTP 请求
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: 未经授权
create
创建 ResourceQuota
HTTP 请求
POST /api/v1/namespaces/{namespace}/resourcequotas
参数
namespace (在路径中): string, required
body: ResourceQuota, required
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (ResourceQuota): OK
201 (ResourceQuota): 已创建
202 (ResourceQuota): 已接受
401: 未经授权
update
替换指定的 ResourceQuota
HTTP 请求
PUT /api/v1/namespaces/{namespace}/resourcequotas/{name}
参数
name (在路径中): string, required
ResourceQuota 的名称
namespace (在路径中): string, required
body: ResourceQuota, required
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (ResourceQuota): OK
201 (ResourceQuota): 已创建
401: 未经授权
update
替换指定 ResourceQuota 的状态
HTTP 请求
PUT /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
参数
name (在路径中): string, required
ResourceQuota 的名称
namespace (在路径中): string, required
body: ResourceQuota, required
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (ResourceQuota): OK
201 (ResourceQuota): 已创建
401: 未经授权
patch
部分更新指定的 ResourceQuota
HTTP 请求
PATCH /api/v1/namespaces/{namespace}/resourcequotas/{name}
参数
name (在路径中): string, required
ResourceQuota 的名称
namespace (在路径中): string, required
body: Patch, required
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (在查询中): boolean
pretty (在查询中): string
响应
200 (ResourceQuota): OK
201 (ResourceQuota): 已创建
401: 未经授权
patch
部分更新指定 ResourceQuota 的状态
HTTP 请求
PATCH /api/v1/namespaces/{namespace}/resourcequotas/{name}/status
参数
name (在路径中): string, required
ResourceQuota 的名称
namespace (在路径中): string, required
body: Patch, required
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (在查询中): boolean
pretty (在查询中): string
响应
200 (ResourceQuota): OK
201 (ResourceQuota): 已创建
401: 未经授权
delete
删除 ResourceQuota
HTTP 请求
DELETE /api/v1/namespaces/{namespace}/resourcequotas/{name}
参数
name (在路径中): string, required
ResourceQuota 的名称
namespace (在路径中): string, required
主体: DeleteOptions
dryRun (在查询中): string
gracePeriodSeconds (在查询中): 整数
pretty (在查询中): string
propagationPolicy (在查询中): 字符串
响应
200 (ResourceQuota): OK
202 (ResourceQuota): 已接受
401: 未经授权
deletecollection
删除 ResourceQuota 集合
HTTP 请求
DELETE /api/v1/namespaces/{namespace}/resourcequotas
参数
namespace (在路径中): string, required
主体: DeleteOptions
continue (在查询中): string
dryRun (在查询中): string
fieldSelector (在查询中): string
gracePeriodSeconds (在查询中): 整数
labelSelector (在查询中): string
limit (在查询中): integer
pretty (在查询中): string
propagationPolicy (在查询中): 字符串
resourceVersion (在查询中): string
resourceVersionMatch (在查询中): string
sendInitialEvents (在查询中): boolean
timeoutSeconds (在查询中): integer
响应
200 (状态): 正常
401: 未经授权
此页面是自动生成的。
如果您要报告此页面存在问题,请在问题描述中提及此页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。