apiVersion: resource.k8s.io/v1
import "k8s.io/api/resource/v1"
ResourceClaimTemplate 用于生成 ResourceClaim 对象。
这是一个 alpha 类型,需要启用 DynamicResourceAllocation 功能门。
apiVersion: resource.k8s.io/v1
kind: ResourceClaimTemplate
metadata (ObjectMeta)
标准对象元数据
spec (ResourceClaimTemplateSpec), 必需
描述要生成的 ResourceClaim。
该字段是不可变的。当需要时,控制平面将为 Pod 创建一个 ResourceClaim,此后该 ResourceClaim 将不再更新。
ResourceClaimTemplateSpec 包含 ResourceClaim 的元数据和字段。
spec (ResourceClaimSpec), 必需
ResourceClaim 的规范。全部内容将原样复制到由该模板创建的 ResourceClaim 中。ResourceClaim 中的相同字段在此处也是有效的。
metadata (ObjectMeta)
ObjectMeta 可能包含在创建 ResourceClaim 时复制进去的标签和注解。不允许包含其他字段,否则在验证过程中会被拒绝。
ResourceClaimTemplateList 是声明模板的集合。
apiVersion: resource.k8s.io/v1
kind: ResourceClaimTemplateList
metadata (ListMeta)
标准列表元数据
items ([]ResourceClaimTemplate), 必需
Items 是资源声明模板的列表。
get 读取指定的 ResourceClaimTemplateGET /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}
name (在路径中): string, 必需
ResourceClaimTemplate 的名称
namespace (在路径中): string, 必需
pretty (在查询中): string
200 (ResourceClaimTemplate): OK
401: 未授权
list 列出或监视 ResourceClaimTemplate 类型的对象GET /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates
namespace (在路径中): string, 必需
allowWatchBookmarks (in query): boolean
continue (in query): string
fieldSelector (in query): string
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
watch (in query): boolean
200 (ResourceClaimTemplateList): OK
401: 未授权
list 列出或监视 ResourceClaimTemplate 类型的对象GET /apis/resource.k8s.io/v1/resourceclaimtemplates
allowWatchBookmarks (in query): boolean
continue (in query): string
fieldSelector (in query): string
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
watch (in query): boolean
200 (ResourceClaimTemplateList): OK
401: 未授权
create 创建一个 ResourceClaimTemplatePOST /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates
namespace (在路径中): string, 必需
body: ResourceClaimTemplate, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
200 (ResourceClaimTemplate): OK
201 (ResourceClaimTemplate): Created
202 (ResourceClaimTemplate): Accepted
401: 未授权
update 替换指定的 ResourceClaimTemplatePUT /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): OK
201 (ResourceClaimTemplate): Created
401: 未授权
patch 部分更新指定的 ResourceClaimTemplatePATCH /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}
name (在路径中): string, 必需
ResourceClaimTemplate 的名称
namespace (在路径中): string, 必需
body: Patch, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (in query): boolean
pretty (在查询中): string
200 (ResourceClaimTemplate): OK
201 (ResourceClaimTemplate): Created
401: 未授权
delete 删除一个 ResourceClaimTemplateDELETE /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}
name (在路径中): string, 必需
ResourceClaimTemplate 的名称
namespace (在路径中): string, 必需
body: DeleteOptions
dryRun (在查询中): string
gracePeriodSeconds (in query): integer
ignoreStoreReadErrorWithClusterBreakingPotential (in query): boolean
pretty (在查询中): string
propagationPolicy (in query): string
200 (ResourceClaimTemplate): OK
202 (ResourceClaimTemplate): Accepted
401: 未授权
deletecollection 删除 ResourceClaimTemplate 集合DELETE /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates
namespace (在路径中): string, 必需
body: DeleteOptions
continue (in query): string
dryRun (在查询中): string
fieldSelector (in query): string
gracePeriodSeconds (in query): integer
ignoreStoreReadErrorWithClusterBreakingPotential (in query): boolean
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
propagationPolicy (in query): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
200 (Status): 确定
401: 未授权
本页面是自动生成的。
如果您打算报告此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。