PodTemplate

PodTemplate 描述用於建立預先定義 Pod 副本的範本。

apiVersion: v1

import "k8s.io/api/core/v1"

PodTemplate

PodTemplate 描述用於建立預先定義 Pod 副本的範本。


PodTemplateSpec

PodTemplateSpec 描述從範本建立 Pod 時應具有的資料


PodTemplateList

PodTemplateList 是 PodTemplate 的清單。


操作


get 讀取指定的 PodTemplate

HTTP 請求

GET /api/v1/namespaces/{namespace}/podtemplates/{name}

參數

  • name (在路徑中):字串,必要

    PodTemplate 的名稱

  • namespace (在路徑中):字串,必要

    命名空間

  • pretty (在查詢中):字串

    pretty

回應

200 (PodTemplate):OK

401:未經授權

list 列出或監看種類為 PodTemplate 的物件

HTTP 請求

GET /api/v1/namespaces/{namespace}/podtemplates

參數

回應

200 (PodTemplateList):OK

401:未經授權

list 列出或監看種類為 PodTemplate 的物件

HTTP 請求

GET /api/v1/podtemplates

參數

回應

200 (PodTemplateList):OK

401:未經授權

create 建立 PodTemplate

HTTP 請求

POST /api/v1/namespaces/{namespace}/podtemplates

參數

回應

200 (PodTemplate):OK

201 (PodTemplate):已建立

202 (PodTemplate):已接受

401:未經授權

update 取代指定的 PodTemplate

HTTP 請求

PUT /api/v1/namespaces/{namespace}/podtemplates/{name}

參數

  • name (在路徑中):字串,必要

    PodTemplate 的名稱

  • namespace (在路徑中):字串,必要

    命名空間

  • body: PodTemplate,必要

  • dryRun (在查詢中):字串

    dryRun

  • fieldManager (在查詢中):字串

    fieldManager

  • fieldValidation (在查詢中):字串

    fieldValidation

  • pretty (在查詢中):字串

    pretty

回應

200 (PodTemplate):OK

201 (PodTemplate):已建立

401:未經授權

patch 部分更新指定的 PodTemplate

HTTP 請求

PATCH /api/v1/namespaces/{namespace}/podtemplates/{name}

參數

  • name (在路徑中):字串,必要

    PodTemplate 的名稱

  • namespace (在路徑中):字串,必要

    命名空間

  • body: Patch,必填

  • dryRun (在查詢中):字串

    dryRun

  • fieldManager (在查詢中):字串

    fieldManager

  • fieldValidation (在查詢中):字串

    fieldValidation

  • force (於查詢字串中): 布林值

    強制

  • pretty (在查詢中):字串

    pretty

回應

200 (PodTemplate):OK

201 (PodTemplate):已建立

401:未經授權

delete 刪除 PodTemplate

HTTP 請求

DELETE /api/v1/namespaces/{namespace}/podtemplates/{name}

參數

回應

200 (PodTemplate):OK

202 (PodTemplate):已接受

401:未經授權

deletecollection 刪除 PodTemplate 集合

HTTP 請求

DELETE /api/v1/namespaces/{namespace}/podtemplates

參數

回應

200 (Status):成功

401:未經授權

此頁面為自動產生。

如果您計劃回報此頁面的問題,請在您的問題描述中提及此頁面為自動產生。此問題的修正可能需要在 Kubernetes 專案的其他地方進行。

上次修改時間:2024年8月28日下午 6:01 PST:更新 v1.31 的自動產生 API 參考文件 (8ba98c79c1)