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)
範本定義將由此 Pod 範本建立的 Pod。https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
PodTemplateSpec
PodTemplateSpec 描述從範本建立 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):OK
401:未經授權
list
列出或監看種類為 PodTemplate 的物件
HTTP 請求
GET /api/v1/namespaces/{namespace}/podtemplates
參數
namespace (在路徑中):字串,必要
allowWatchBookmarks (在查詢中):布林值
continue (在查詢中):字串
fieldSelector (在查詢中):字串
labelSelector (在查詢中):字串
limit (在查詢中):整數
pretty (在查詢中):字串
resourceVersion (在查詢中):字串
resourceVersionMatch (在查詢中):字串
sendInitialEvents (在查詢中):布林值
timeoutSeconds (在查詢中):整數
watch (在查詢中):布林值
回應
200 (PodTemplateList):OK
401:未經授權
list
列出或監看種類為 PodTemplate 的物件
HTTP 請求
GET /api/v1/podtemplates
參數
allowWatchBookmarks (在查詢中):布林值
continue (在查詢中):字串
fieldSelector (在查詢中):字串
labelSelector (在查詢中):字串
limit (在查詢中):整數
pretty (在查詢中):字串
resourceVersion (在查詢中):字串
resourceVersionMatch (在查詢中):字串
sendInitialEvents (在查詢中):布林值
timeoutSeconds (在查詢中):整數
watch (在查詢中):布林值
回應
200 (PodTemplateList):OK
401:未經授權
create
建立 PodTemplate
HTTP 請求
POST /api/v1/namespaces/{namespace}/podtemplates
參數
namespace (在路徑中):字串,必要
body: PodTemplate,必要
dryRun (在查詢中):字串
fieldManager (在查詢中):字串
fieldValidation (在查詢中):字串
pretty (在查詢中):字串
回應
200 (PodTemplate):OK
201 (PodTemplate):已建立
202 (PodTemplate):已接受
401:未經授權
update
取代指定的 PodTemplate
HTTP 請求
PUT /api/v1/namespaces/{namespace}/podtemplates/{name}
參數
name (在路徑中):字串,必要
PodTemplate 的名稱
namespace (在路徑中):字串,必要
body: PodTemplate,必要
dryRun (在查詢中):字串
fieldManager (在查詢中):字串
fieldValidation (在查詢中):字串
pretty (在查詢中):字串
回應
200 (PodTemplate):OK
201 (PodTemplate):已建立
401:未經授權
patch
部分更新指定的 PodTemplate
HTTP 請求
PATCH /api/v1/namespaces/{namespace}/podtemplates/{name}
參數
name (在路徑中):字串,必要
PodTemplate 的名稱
namespace (在路徑中):字串,必要
body: Patch,必填
dryRun (在查詢中):字串
fieldManager (在查詢中):字串
fieldValidation (在查詢中):字串
force (於查詢字串中): 布林值
pretty (在查詢中):字串
回應
200 (PodTemplate):OK
201 (PodTemplate):已建立
401:未經授權
delete
刪除 PodTemplate
HTTP 請求
DELETE /api/v1/namespaces/{namespace}/podtemplates/{name}
參數
name (在路徑中):字串,必要
PodTemplate 的名稱
namespace (在路徑中):字串,必要
body: DeleteOptions
dryRun (在查詢中):字串
gracePeriodSeconds (於查詢字串中): 整數
pretty (在查詢中):字串
propagationPolicy (於查詢字串中): 字串
回應
200 (PodTemplate):OK
202 (PodTemplate):已接受
401:未經授權
deletecollection
刪除 PodTemplate 集合
HTTP 請求
DELETE /api/v1/namespaces/{namespace}/podtemplates
參數
namespace (在路徑中):字串,必要
body: DeleteOptions
continue (在查詢中):字串
dryRun (在查詢中):字串
fieldSelector (在查詢中):字串
gracePeriodSeconds (於查詢字串中): 整數
labelSelector (在查詢中):字串
limit (在查詢中):整數
pretty (在查詢中):字串
propagationPolicy (於查詢字串中): 字串
resourceVersion (在查詢中):字串
resourceVersionMatch (在查詢中):字串
sendInitialEvents (在查詢中):布林值
timeoutSeconds (在查詢中):整數
回應
200 (Status):成功
401:未經授權
此頁面為自動產生。
如果您計劃回報此頁面的問題,請在您的問題描述中提及此頁面為自動產生。此問題的修正可能需要在 Kubernetes 專案的其他地方進行。