apiVersion: v1
import "k8s.io/api/core/v1"
PodTemplate describes a template for creating copies of a predefined pod.
apiVersion: v1
kind: PodTemplate
metadata (ObjectMeta)
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
template (PodTemplateSpec)
Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
PodTemplateSpec describes the data a pod should have when created from a template
metadata (ObjectMeta)
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec (PodSpec)
Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
PodTemplateList is a list of PodTemplates.
apiVersion: v1
kind: PodTemplateList
metadata (ListMeta)
Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
items ([]PodTemplate), required
List of pod templates
get
read the specified PodTemplateGET /api/v1/namespaces/{namespace}/podtemplates/{name}
name (in path): string, required
name of the PodTemplate
namespace (in path): string, required
pretty (in query): string
200 (PodTemplate): OK
401: Unauthorized
list
list or watch objects of kind PodTemplateGET /api/v1/namespaces/{namespace}/podtemplates
namespace (in path): string, required
allowWatchBookmarks (in query): boolean
continue (in query): string
fieldSelector (in query): string
labelSelector (in query): string
limit (in query): integer
pretty (in query): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
timeoutSeconds (in query): integer
watch (in query): boolean
200 (PodTemplateList): OK
401: Unauthorized
list
list or watch objects of kind PodTemplateGET /api/v1/podtemplates
allowWatchBookmarks (in query): boolean
continue (in query): string
fieldSelector (in query): string
labelSelector (in query): string
limit (in query): integer
pretty (in query): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
timeoutSeconds (in query): integer
watch (in query): boolean
200 (PodTemplateList): OK
401: Unauthorized
create
create a PodTemplatePOST /api/v1/namespaces/{namespace}/podtemplates
namespace (in path): string, required
body: PodTemplate, required
dryRun (in query): string
fieldManager (in query): string
fieldValidation (in query): string
pretty (in query): string
200 (PodTemplate): OK
201 (PodTemplate): Created
202 (PodTemplate): Accepted
401: Unauthorized
update
replace the specified PodTemplatePUT /api/v1/namespaces/{namespace}/podtemplates/{name}
name (in path): string, required
name of the PodTemplate
namespace (in path): string, required
body: PodTemplate, required
dryRun (in query): string
fieldManager (in query): string
fieldValidation (in query): string
pretty (in query): string
200 (PodTemplate): OK
201 (PodTemplate): Created
401: Unauthorized
patch
partially update the specified PodTemplatePATCH /api/v1/namespaces/{namespace}/podtemplates/{name}
name (in path): string, required
name of the PodTemplate
namespace (in path): string, required
body: Patch, required
dryRun (in query): string
fieldManager (in query): string
fieldValidation (in query): string
force (in query): boolean
pretty (in query): string
200 (PodTemplate): OK
201 (PodTemplate): Created
401: Unauthorized
delete
delete a PodTemplateDELETE /api/v1/namespaces/{namespace}/podtemplates/{name}
name (in path): string, required
name of the PodTemplate
namespace (in path): string, required
body: DeleteOptions
dryRun (in query): string
gracePeriodSeconds (in query): integer
pretty (in query): string
propagationPolicy (in query): string
200 (PodTemplate): OK
202 (PodTemplate): Accepted
401: Unauthorized
deletecollection
delete collection of PodTemplateDELETE /api/v1/namespaces/{namespace}/podtemplates
namespace (in path): string, required
body: DeleteOptions
continue (in query): string
dryRun (in query): string
fieldSelector (in query): string
gracePeriodSeconds (in query): integer
labelSelector (in query): string
limit (in query): integer
pretty (in query): string
propagationPolicy (in query): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
timeoutSeconds (in query): integer
200 (Status): OK
401: Unauthorized
© 2022 The Kubernetes Authors
Documentation Distributed under CC BY 4.0.
https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-template-v1/