PodTemplate

PodTemplate 描述了用于创建预定义 Pod 副本的模板。

apiVersion: v1

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

PodTemplate

PodTemplate 描述了用于创建预定义 Pod 副本的模板。


PodTemplateSpec

PodTemplateSpec 描述了从模板创建 Pod 时 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, required

  • 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, required

  • dryRun (在查询中): 字符串

    dryRun

  • fieldManager (在查询中): 字符串

    fieldManager

  • fieldValidation (在查询中): 字符串

    fieldValidation

  • force (在查询中): 布尔值

    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): OK

401: 未经授权

此页面是自动生成的。

如果您打算报告此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目中的其他地方进行。

上次修改时间:2023 年 4 月 3 日上午 8:22 PST: API Ref 多页面 v1.27 (7b39e9a9ec)