PodTemplate
apiVersion: v1
import "k8s.io/api/core/v1"
PodTemplate
PodTemplate 描述了建立預定義 Pod 副本的模板。
apiVersion: v1
kind: PodTemplate
metadata (ObjectMeta)
標準物件的元資料。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
template (PodTemplateSpec)
Template 定義了將從此 Pod 模板建立的 Pod。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
PodTemplateSpec
PodTemplateSpec 描述了從模板建立 Pod 時 Pod 應具有的資料。
metadata (ObjectMeta)
標準物件的元資料。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec (PodSpec)
Pod 預期行為的規範。更多資訊:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
PodTemplateList
PodTemplateList 是 PodTemplate 的列表。
apiVersion: v1
kind: PodTemplateList
metadata (ListMeta)
標準列表元資料。更多資訊: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
items ([]PodTemplate), 必填
Pod 模板列表
操作
get
讀取指定的 PodTemplate
HTTP 請求
GET /api/v1/namespaces/{namespace}/podtemplates/{name}
引數
響應
200 (PodTemplate): 正常
401: 未授權
list
列出或監視 PodTemplate 型別的物件
HTTP 請求
GET /api/v1/namespaces/{namespace}/podtemplates
引數
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 (PodTemplateList): 正常
401: 未授權
list
列出或監視 PodTemplate 型別的物件
HTTP 請求
GET /api/v1/podtemplates
引數
allowWatchBookmarks (在查詢中): boolean
continue (在查詢中): string
fieldSelector (在查詢中): string
labelSelector (在查詢中): string
limit (在查詢中): integer
pretty (在查詢中): string
resourceVersion (在查詢中): string
resourceVersionMatch (在查詢中): string
sendInitialEvents (在查詢中): boolean
timeoutSeconds (在查詢中): integer
watch (在查詢中): boolean
響應
200 (PodTemplateList): 正常
401: 未授權
create
建立一個 PodTemplate
HTTP 請求
POST /api/v1/namespaces/{namespace}/podtemplates
引數
namespace (在路徑中): string,必填
body: PodTemplate, 必填
dryRun (在查詢中): string
fieldManager (在查詢中): string
fieldValidation (在查詢中): string
pretty (在查詢中): string
響應
200 (PodTemplate): 正常
201 (PodTemplate): 已建立
202 (PodTemplate): 已接受
401: 未授權
update
替換指定的 PodTemplate
HTTP 請求
PUT /api/v1/namespaces/{namespace}/podtemplates/{name}
引數
name (在路徑中): string,必填
PodTemplate 的名稱
namespace (在路徑中): string,必填
body: PodTemplate, 必填
dryRun (在查詢中): string
fieldManager (在查詢中): string
fieldValidation (在查詢中): string
pretty (在查詢中): string
響應
200 (PodTemplate): 正常
201 (PodTemplate): 已建立
401: 未授權
patch
部分更新指定的 PodTemplate
HTTP 請求
PATCH /api/v1/namespaces/{namespace}/podtemplates/{name}
引數
name (在路徑中): string,必填
PodTemplate 的名稱
namespace (在路徑中): string,必填
body: Patch,必需
dryRun (在查詢中): string
fieldManager (在查詢中): string
fieldValidation (在查詢中): string
force (在查詢中): boolean
pretty (在查詢中): string
響應
200 (PodTemplate): 正常
201 (PodTemplate): 已建立
401: 未授權
delete
刪除一個 PodTemplate
HTTP 請求
DELETE /api/v1/namespaces/{namespace}/podtemplates/{name}
引數
name (在路徑中): string,必填
PodTemplate 的名稱
namespace (在路徑中): string,必填
body: DeleteOptions
dryRun (在查詢中): string
gracePeriodSeconds (在查詢中): integer
ignoreStoreReadErrorWithClusterBreakingPotential (在查詢中): boolean
pretty (在查詢中): string
propagationPolicy (在查詢中): string
響應
200 (PodTemplate): 正常
202 (PodTemplate): 已接受
401: 未授權
deletecollection
刪除 PodTemplate 集合
HTTP 請求
DELETE /api/v1/namespaces/{namespace}/podtemplates
引數
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 專案的其他地方進行。