ResourceClaimTemplate
apiVersion: resource.k8s.io/v1
import "k8s.io/api/resource/v1"
ResourceClaimTemplate
ResourceClaimTemplate 用于生成 ResourceClaim 对象。
这是一个 Alpha 类型,需要启用 DynamicResourceAllocation 功能门控。
apiVersion: resource.k8s.io/v1
kind: ResourceClaimTemplate
metadata (ObjectMeta)
标准对象元数据
spec (ResourceClaimTemplateSpec), 必需
描述将要生成的 ResourceClaim。
此字段是不可变的。当 Pod 需要时,控制平面会为此 Pod 创建一个 ResourceClaim,之后不再更新。
ResourceClaimTemplateSpec
ResourceClaimTemplateSpec 包含 ResourceClaim 的元数据和字段。
spec (ResourceClaimSpec), 必需
ResourceClaim 的 Spec。整个内容将不加改动地复制到由此模板创建的 ResourceClaim 中。ResourceClaim 中的所有字段在此处也有效。
metadata (ObjectMeta)
ObjectMeta 可能包含在创建 ResourceClaim 时将复制到其中的标签和注解。不允许其他字段,并将在验证期间被拒绝。
ResourceClaimTemplateList
ResourceClaimTemplateList 是索取模板的集合。
apiVersion: resource.k8s.io/v1
kind: ResourceClaimTemplateList
metadata (ListMeta)
标准列表元数据
items ([]ResourceClaimTemplate), 必需
Items 是资源索取模板的列表。
操作
get
读取指定的 ResourceClaimTemplate
HTTP 请求
GET /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}
参数
name (在路径中): string,必填
ResourceClaimTemplate 的名称
namespace (在路径中): string,必填
pretty (在查询中): string
响应
200 (ResourceClaimTemplate): 正常
401: 未授权
list
列出或监视 ResourceClaimTemplate 类型的对象
HTTP 请求
GET /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates
参数
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 (ResourceClaimTemplateList): 正常
401: 未授权
list
列出或监视 ResourceClaimTemplate 类型的对象
HTTP 请求
GET /apis/resource.k8s.io/v1/resourceclaimtemplates
参数
allowWatchBookmarks (在查询中): boolean
continue (在查询中): string
fieldSelector (在查询中): string
labelSelector (在查询中): string
limit (在查询中): integer
pretty (在查询中): string
resourceVersion (在查询中): string
resourceVersionMatch (在查询中): string
sendInitialEvents (在查询中): boolean
timeoutSeconds (在查询中): integer
watch (在查询中): boolean
响应
200 (ResourceClaimTemplateList): 正常
401: 未授权
create
创建 ResourceClaimTemplate
HTTP 请求
POST /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates
参数
namespace (在路径中): string,必填
body: ResourceClaimTemplate, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (ResourceClaimTemplate): 正常
201 (ResourceClaimTemplate): 已创建
202 (ResourceClaimTemplate): 已接受
401: 未授权
update
替换指定的 ResourceClaimTemplate
HTTP 请求
PUT /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}
参数
name (在路径中): string,必填
ResourceClaimTemplate 的名称
namespace (在路径中): string,必填
body: ResourceClaimTemplate, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (ResourceClaimTemplate): 正常
201 (ResourceClaimTemplate): 已创建
401: 未授权
patch
部分更新指定的 ResourceClaimTemplate
HTTP 请求
PATCH /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}
参数
name (在路径中): string,必填
ResourceClaimTemplate 的名称
namespace (在路径中): string,必填
body: Patch,必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (在查询中): boolean
pretty (在查询中): string
响应
200 (ResourceClaimTemplate): 正常
201 (ResourceClaimTemplate): 已创建
401: 未授权
delete
删除 ResourceClaimTemplate
HTTP 请求
DELETE /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}
参数
name (在路径中): string,必填
ResourceClaimTemplate 的名称
namespace (在路径中): string,必填
body: DeleteOptions
dryRun (在查询中): string
gracePeriodSeconds (在查询中): integer
ignoreStoreReadErrorWithClusterBreakingPotential (在查询中): boolean
pretty (在查询中): string
propagationPolicy (在查询中): string
响应
200 (ResourceClaimTemplate): 正常
202 (ResourceClaimTemplate): 已接受
401: 未授权
deletecollection
删除 ResourceClaimTemplate 的集合
HTTP 请求
DELETE /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates
参数
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: 未授权
本页面是自动生成的。
如果你打算报告此页面存在的问题,请在问题描述中提及此页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。