ResourceClaimTemplate v1alpha2
apiVersion: resource.k8s.io/v1alpha2
import "k8s.io/api/resource/v1alpha2"
ResourceClaimTemplate
ResourceClaimTemplate 用于生成 ResourceClaim 对象。
apiVersion: resource.k8s.io/v1alpha2
kind: ResourceClaimTemplate
metadata (ObjectMeta)
标准对象元数据
spec (ResourceClaimTemplateSpec), 必需
描述要生成的 ResourceClaim。
此字段是不可变的。当需要时,控制平面会为 Pod 创建 ResourceClaim,之后不再更新。
ResourceClaimTemplateSpec
ResourceClaimTemplateSpec 包含 ResourceClaim 的元数据和字段。
spec (ResourceClaimSpec), 必需
ResourceClaim 的规范。整个内容将被复制到从该模板创建的 ResourceClaim 中,而不进行更改。ResourceClaim 中的相同字段在这里也有效。
metadata (ObjectMeta)
ObjectMeta 可能包含标签和注释,这些标签和注释会在创建 PVC 时复制到 PVC 中。不允许使用其他字段,这些字段将在验证期间被拒绝。
ResourceClaimTemplateList
ResourceClaimTemplateList 是声明模板的集合。
apiVersion: resource.k8s.io/v1alpha2
kind: ResourceClaimTemplateList
metadata (ListMeta)
标准列表元数据
items ([]ResourceClaimTemplate), 必需
Items 是资源声明模板的列表。
操作
get
读取指定的 ResourceClaimTemplate
HTTP 请求
GET /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}
参数
响应
200 (ResourceClaimTemplate): 确定
401: 未授权
list
列出或观察 ResourceClaimTemplate 类型的对象
HTTP 请求
GET /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates
参数
namespace (在路径中): 字符串,必需
allowWatchBookmarks (在查询中): 布尔值
continue (在查询中): 字符串
fieldSelector (在查询中): 字符串
labelSelector (在查询中): 字符串
limit (在查询中): 整数
pretty (在查询中): 字符串
resourceVersion (在查询中): 字符串
resourceVersionMatch (在查询中): 字符串
sendInitialEvents (在查询中): 布尔值
timeoutSeconds (在查询中): 整数
watch (在查询中): 布尔值
响应
200 (ResourceClaimTemplateList): 确定
401: 未授权
list
列出或观察 ResourceClaimTemplate 类型的对象
HTTP 请求
GET /apis/resource.k8s.io/v1alpha2/resourceclaimtemplates
参数
allowWatchBookmarks (在查询中): 布尔值
continue (在查询中): 字符串
fieldSelector (在查询中): 字符串
labelSelector (在查询中): 字符串
limit (在查询中): 整数
pretty (在查询中): 字符串
resourceVersion (在查询中): 字符串
resourceVersionMatch (在查询中): 字符串
sendInitialEvents (在查询中): 布尔值
timeoutSeconds (在查询中): 整数
watch (在查询中): 布尔值
响应
200 (ResourceClaimTemplateList): 确定
401: 未授权
create
创建 ResourceClaimTemplate
HTTP 请求
POST /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates
参数
namespace (在路径中): 字符串,必需
body: ResourceClaimTemplate, 必需
dryRun (在查询中): 字符串
fieldManager (在查询中): 字符串
fieldValidation (在查询中): 字符串
pretty (在查询中): 字符串
响应
200 (ResourceClaimTemplate): 确定
201 (ResourceClaimTemplate): 创建
202 (ResourceClaimTemplate): 已接受
401: 未授权
update
替换指定的 ResourceClaimTemplate
HTTP 请求
PUT /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}
参数
name (在路径中): 字符串,必需
ResourceClaimTemplate 的名称
namespace (在路径中): 字符串,必需
body: ResourceClaimTemplate, 必需
dryRun (在查询中): 字符串
fieldManager (在查询中): 字符串
fieldValidation (在查询中): 字符串
pretty (在查询中): 字符串
响应
200 (ResourceClaimTemplate): 确定
201 (ResourceClaimTemplate): 创建
401: 未授权
patch
部分更新指定的 ResourceClaimTemplate
HTTP 请求
PATCH /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}
参数
name (在路径中): 字符串,必需
ResourceClaimTemplate 的名称
namespace (在路径中): 字符串,必需
body: Patch, 必需
dryRun (在查询中): 字符串
fieldManager (在查询中): 字符串
fieldValidation (在查询中): 字符串
force (在查询中): 布尔值
pretty (在查询中): 字符串
响应
200 (ResourceClaimTemplate): 确定
201 (ResourceClaimTemplate): 创建
401: 未授权
delete
删除 ResourceClaimTemplate
HTTP 请求
DELETE /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}
参数
name (在路径中): 字符串,必需
ResourceClaimTemplate 的名称
namespace (在路径中): 字符串,必需
body: DeleteOptions
dryRun (在查询中): 字符串
gracePeriodSeconds (在查询中): 整数
pretty (在查询中): 字符串
propagationPolicy (在查询中): 字符串
响应
200 (ResourceClaimTemplate): 确定
202 (ResourceClaimTemplate): 已接受
401: 未授权
deletecollection
删除 ResourceClaimTemplate 的集合
HTTP 请求
DELETE /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates
参数
namespace (在路径中): 字符串,必需
body: DeleteOptions
continue (在查询中): 字符串
dryRun (在查询中): 字符串
fieldSelector (在查询中): 字符串
gracePeriodSeconds (在查询中): 整数
labelSelector (在查询中): 字符串
limit (在查询中): 整数
pretty (在查询中): 字符串
propagationPolicy (在查询中): 字符串
resourceVersion (在查询中): 字符串
resourceVersionMatch (在查询中): 字符串
sendInitialEvents (在查询中): 布尔值
timeoutSeconds (在查询中): 整数
响应
200 (Status): 确定
401: 未授权
此页面是自动生成的。
如果您打算报告有关此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。