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 專案的其他地方進行。