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 创建一个 ResourceClaim,然后不再更新它。
ResourceClaimTemplateSpec
ResourceClaimTemplateSpec 包含 ResourceClaim 的元数据和字段。
spec (ResourceClaimSpec), 必需
ResourceClaim 的规范。整个内容会原封不动地复制到从该模板创建的 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}
Parameters
name (在路径中): string, 必需
ResourceClaimTemplate 的名称
namespace (在路径中): string, 必需
pretty (在查询中): string
响应
200 (ResourceClaimTemplate): 确定
401: 未授权
list 列出或监视 ResourceClaimTemplate 类型的对象
HTTP 请求
GET /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates
Parameters
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): 确定
401: 未授权
list 列出或监视 ResourceClaimTemplate 类型的对象
HTTP 请求
GET /apis/resource.k8s.io/v1/resourceclaimtemplates
Parameters
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): 确定
401: 未授权
create 创建一个 ResourceClaimTemplate
HTTP 请求
POST /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates
Parameters
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}
Parameters
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}
Parameters
name (在路径中): string, 必需
ResourceClaimTemplate 的名称
namespace (在路径中): string, 必需
body: Patch, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (in query): boolean
pretty (在查询中): string
响应
200 (ResourceClaimTemplate): 确定
201 (ResourceClaimTemplate): 已创建
401: 未授权
delete 删除一个 ResourceClaimTemplate
HTTP 请求
DELETE /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}
Parameters
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): 确定
202 (ResourceClaimTemplate): 已接受
401: 未授权
deletecollection 删除 ResourceClaimTemplate 的集合
HTTP 请求
DELETE /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates
Parameters
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 项目的其他地方进行。