PodTemplate
apiVersion: v1
import "k8s.io/api/core/v1"
PodTemplate
PodTemplate 描述了创建预定义 Pod 副本的模板。
apiVersion: v1
kind: PodTemplate
metadata (ObjectMeta)
标准对象的 metadata。更多信息: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)
标准对象的 metadata。更多信息: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)
标准列表 metadata。更多信息: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
列出或监听 kind 为 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):OK
401:未经授权
list
列出或监听 kind 为 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):OK
401:未经授权
create
创建一个 PodTemplate
HTTP 请求
POST /api/v1/namespaces/{namespace}/podtemplates
参数
namespace (在路径中):string,必需
body: PodTemplate,必需
dryRun (在查询中):string
fieldManager (在查询中):string
fieldValidation (在查询中):string
pretty (在查询中):string
响应
200 (PodTemplate):OK
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):OK
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):OK
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):OK
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 项目的其他地方进行。