# PodTemplate

PodTemplatePodTemplate describes a template for creating copies of a predefined pod.apiVersion: v1import "k8s.io/api/core/v1"PodTemplatePodTemplate describes a template for creating copies of a predefined pod.apiVersion: v1kind: PodTemplatemetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadatatemplate (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-statusPodTemplateSpecPodTemplateSpec describes the data a pod should have when created from a templatemetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataspec (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-statusPodTemplateListPodTemplateList is a list of PodTemplates.apiVersion: v1kind: PodTemplateListmetadata (ListMeta)Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsitems ([]PodTemplate), requiredList of pod templatesOperationsget read the specified PodTemplateHTTP RequestGET /api/v1/namespaces/{namespace}/podtemplates/{name}Parametersname (in path): string, requiredname of the PodTemplatenamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (PodTemplate): OK401: Unauthorizedlist list or watch objects of kind PodTemplateHTTP RequestGET /api/v1/namespaces/{namespace}/podtemplatesParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (PodTemplateList): OK401: Unauthorizedlist list or watch objects of kind PodTemplateHTTP RequestGET /api/v1/podtemplatesParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (PodTemplateList): OK401: Unauthorizedcreate create a PodTemplateHTTP RequestPOST /api/v1/namespaces/{namespace}/podtemplatesParametersnamespace (in path): string, requirednamespacebody: PodTemplate, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (PodTemplate): OK201 (PodTemplate): Created202 (PodTemplate): Accepted401: Unauthorizedupdate replace the specified PodTemplateHTTP RequestPUT /api/v1/namespaces/{namespace}/podtemplates/{name}Parametersname (in path): string, requiredname of the PodTemplatenamespace (in path): string, requirednamespacebody: PodTemplate, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (PodTemplate): OK201 (PodTemplate): Created401: Unauthorizedpatch partially update the specified PodTemplateHTTP RequestPATCH /api/v1/namespaces/{namespace}/podtemplates/{name}Parametersname (in path): string, requiredname of the PodTemplatenamespace (in path): string, requirednamespacebody: Patch, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationforce (in query): booleanforcepretty (in query): stringprettyResponse200 (PodTemplate): OK201 (PodTemplate): Created401: Unauthorizeddelete delete a PodTemplateHTTP RequestDELETE /api/v1/namespaces/{namespace}/podtemplates/{name}Parametersname (in path): string, requiredname of the PodTemplatenamespace (in path): string, requirednamespacebody: DeleteOptionsdryRun (in query): stringdryRungracePeriodSeconds (in query): integergracePeriodSecondsignoreStoreReadErrorWithClusterBreakingPotential (in query): booleanignoreStoreReadErrorWithClusterBreakingPotentialpretty (in query): stringprettypropagationPolicy (in query): stringpropagationPolicyResponse200 (PodTemplate): OK202 (PodTemplate): Accepted401: Unauthorizeddeletecollection delete collection of PodTemplateHTTP RequestDELETE /api/v1/namespaces/{namespace}/podtemplatesParametersnamespace (in path): string, requirednamespacebody: DeleteOptionscontinue (in query): stringcontinuedryRun (in query): stringdryRunfieldSelector (in query): stringfieldSelectorgracePeriodSeconds (in query): integergracePeriodSecondsignoreStoreReadErrorWithClusterBreakingPotential (in query): booleanignoreStoreReadErrorWithClusterBreakingPotentiallabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettypropagationPolicy (in query): stringpropagationPolicyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondsResponse200 (Status): OK401: UnauthorizedThis page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.