ResourceClaimTemplate v1beta1
apiVersion: resource.k8s.io/v1beta1
import "k8s.io/api/resource/v1beta1"
ResourceClaimTemplate
ResourceClaimTemplate 用於產生 ResourceClaim 物件。
這是 Alpha 類型,需要啟用 DynamicResourceAllocation 功能閘道。
apiVersion: resource.k8s.io/v1beta1
kind: ResourceClaimTemplate
metadata (ObjectMeta)
標準物件中繼資料
spec (ResourceClaimTemplateSpec), 必需
描述要產生的 ResourceClaim。
此欄位是不可變的。當 Pod 需要時,控制平面將為其建立 ResourceClaim,然後不再更新。
ResourceClaimTemplateSpec
ResourceClaimTemplateSpec 包含 ResourceClaim 的中繼資料和欄位。
spec (ResourceClaimSpec), 必需
ResourceClaim 的 Spec。整個內容會不變地複製到從此範本建立的 ResourceClaim 中。ResourceClaim 中的相同欄位在此處也有效。
metadata (ObjectMeta)
ObjectMeta 可能包含在建立 PVC 時將複製到 PVC 中的標籤和註解。不允許其他欄位,並且在驗證期間將被拒絕。
ResourceClaimTemplateList
ResourceClaimTemplateList 是宣告範本的集合。
apiVersion: resource.k8s.io/v1beta1
kind: ResourceClaimTemplateList
metadata (ListMeta)
標準清單中繼資料
items ([]ResourceClaimTemplate), 必需
Items 是資源宣告範本的清單。
操作
get
讀取指定的 ResourceClaimTemplate
HTTP 請求
GET /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}
參數
回應
200 (ResourceClaimTemplate): 確定
401: 未經授權
list
列出或監看 ResourceClaimTemplate 類型的物件
HTTP 請求
GET /apis/resource.k8s.io/v1beta1/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/v1beta1/resourceclaimtemplates
參數
allowWatchBookmarks (在查詢中): 布林值
continue (在查詢中): 字串
fieldSelector (在查詢中): 字串
labelSelector (在查詢中): 字串
limit (在查詢中): 整數
pretty (在查詢中): 字串
resourceVersion (在查詢中): 字串
resourceVersionMatch (在查詢中): 字串
sendInitialEvents (在查詢中): 布林值
timeoutSeconds (在查詢中): 整數
watch (在查詢中): 布林值
回應
200 (ResourceClaimTemplateList): 確定
401: 未經授權
create
建立 ResourceClaimTemplate
HTTP 請求
POST /apis/resource.k8s.io/v1beta1/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/v1beta1/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/v1beta1/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/v1beta1/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/v1beta1/namespaces/{namespace}/resourceclaimtemplates
參數
namespace (在路徑中): 字串,必需
body: DeleteOptions
continue (在查詢中): 字串
dryRun (在查詢中): 字串
fieldSelector (在查詢中): 字串
gracePeriodSeconds (在查詢中): 整數
labelSelector (在查詢中): 字串
limit (在查詢中): 整數
pretty (在查詢中): 字串
propagationPolicy (在查詢中): 字串
resourceVersion (在查詢中): 字串
resourceVersionMatch (在查詢中): 字串
sendInitialEvents (在查詢中): 布林值
timeoutSeconds (在查詢中): 整數
回應
200 (Status): 確定
401: 未經授權
此頁面為自動產生。
如果您計劃回報此頁面的問題,請在您的問題描述中提及此頁面為自動產生。修正可能需要在 Kubernetes 專案的其他地方進行。