kubernetes reference kind PodTemplate apiVersion v1 PodTemplate describes a template for creating copies of a predefined pod contenttype apireference apimetadata title PodTemplate weight 3 autogenerated true import k8s io api core v1

Answer:
---
api_metadata:
  apiVersion: "v1"
  import: "k8s.io/api/core/v1"
  kind: "PodTemplate"
content_type: "api_reference"
description: "PodTemplate describes a template for creating copies of a predefined pod."
title: "PodTemplate"
weight: 3
auto_generated: true
---

`apiVersion: v1`

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

## PodTemplate {#PodTemplate}

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 {#PodTemplateSpec}

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 {#PodTemplateList}

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

## Operations {#Operations}

### `get` read the specified PodTemplate

#### HTTP Request

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

#### Parameters

- **name** (*in path*): string, required

  name of the PodTemplate

- **namespace** (*in path*): string, required

  namespace

- **pretty** (*in query*): string

  pretty

#### Response

200 (PodTemplate): OK

401: Unauthorized

### `list` list or watch objects of kind PodTemplate

#### HTTP Request

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

#### Parameters

- **namespace** (*in path*): string, required

  namespace

- **allowWatchBookmarks** (*in query*): boolean

  allowWatchBookmarks

- **continue** (*in query*): string

  continue

- **fieldSelector** (*in query*): string

  fieldSelector

- **labelSelector** (*in query*): string

  labelSelector

- **limit** (*in query*): integer

  limit

- **pretty** (*in query*): string

  pretty

- **resourceVersion** (*in query*): string

  resourceVersion

- **resourceVersionMatch** (*in query*): string

  resourceVersionMatch

- **sendInitialEvents** (*in query*): boolean

  sendInitialEvents

- **timeoutSeconds** (*in query*): integer

  timeoutSeconds

- **watch** (*in query*): boolean

  watch

#### Response

200 (PodTemplateList): OK

401: Unauthorized

### `list` list or watch objects of kind PodTemplate

#### HTTP Request

GET /api/v1/podtemplates

#### Parameters

- **allowWatchBookmarks** (*in query*): boolean

  allowWatchBookmarks

- **continue** (*in query*): string

  continue

- **fieldSelector** (*in query*): string

  fieldSelector

- **labelSelector** (*in query*): string

  labelSelector

- **limit** (*in query*): integer

  limit

- **pretty** (*in query*): string

  pretty

- **resourceVersion** (*in query*): string

  resourceVersion

- **resourceVersionMatch** (*in query*): string

  resourceVersionMatch

- **sendInitialEvents** (*in query*): boolean

  sendInitialEvents

- **timeoutSeconds** (*in query*): integer

  timeoutSeconds

- **watch** (*in query*): boolean

  watch

#### Response

200 (PodTemplateList): OK

401: Unauthorized

### `create` create a PodTemplate

#### HTTP Request

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

#### Parameters

- **namespace** (*in path*): string, required

  namespace

- **body**: PodTemplate, required

- **dryRun** (*in query*): string

  dryRun

- **fieldManager** (*in query*): string

  fieldManager

- **fieldValidation** (*in query*): string

  fieldValidation

- **pretty** (*in query*): string

  pretty

#### Response

200 (PodTemplate): OK

201 (PodTemplate): Created

202 (PodTemplate): Accepted

401: Unauthorized

### `update` replace the specified PodTemplate

#### HTTP Request

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

#### Parameters

- **name** (*in path*): string, required

  name of the PodTemplate

- **namespace** (*in path*): string, required

  namespace

- **body**: PodTemplate, required

- **dryRun** (*in query*): string

  dryRun

- **fieldManager** (*in query*): string

  fieldManager

- **fieldValidation** (*in query*): string

  fieldValidation

- **pretty** (*in query*): string

  pretty

#### Response

200 (PodTemplate): OK

201 (PodTemplate): Created

401: Unauthorized

### `patch` partially update the specified PodTemplate

#### HTTP Request

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

#### Parameters

- **name** (*in path*): string, required

  name of the PodTemplate

- **namespace** (*in path*): string, required

  namespace

- **body**: Patch, required

- **dryRun** (*in query*): string

  dryRun

- **fieldManager** (*in query*): string

  fieldManager

- **fieldValidation** (*in query*): string

  fieldValidation

- **force** (*in query*): boolean

  force

- **pretty** (*in query*): string

  pretty

#### Response

200 (PodTemplate): OK

201 (PodTemplate): Created

401: Unauthorized

### `delete` delete a PodTemplate

#### HTTP Request

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

#### Parameters

- **name** (*in path*): string, required

  name of the PodTemplate

- **namespace** (*in path*): string, required

  namespace

- **body**: DeleteOptions

- **dryRun** (*in query*): string

  dryRun

- **gracePeriodSeconds** (*in query*): integer

  gracePeriodSeconds

- **pretty** (*in query*): string

  pretty

- **propagationPolicy** (*in query*): string

  propagationPolicy

#### Response

200 (PodTemplate): OK

202 (PodTemplate): Accepted

401: Unauthorized

### `deletecollection` delete collection of PodTemplate

#### HTTP Request

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

#### Parameters

- **namespace** (*in path*): string, required

  namespace

- **body**: DeleteOptions

- **continue** (*in query*): string

  continue

- **dryRun** (*in query*): string

  dryRun

- **fieldSelector** (*in query*): string

  fieldSelector

- **gracePeriodSeconds** (*in query*): integer

  gracePeriodSeconds

- **labelSelector** (*in query*): string

  labelSelector

- **limit** (*in query*): integer

  limit

- **pretty** (*in query*): string

  pretty

- **propagationPolicy** (*in query*): string

  propagationPolicy

- **resourceVersion** (*in query*): string

  resourceVersion

- **resourceVersionMatch** (*in query*): string

  resourceVersionMatch

- **sendInitialEvents** (*in query*): boolean

  sendInitialEvents

- **timeoutSeconds** (*in query*): integer

  timeoutSeconds

#### Response

200 (Status): OK

401: Unauthorized

api metadata    apiVersion   v1    import   k8s io api core v1    kind   PodTemplate  content type   api reference  description   PodTemplate describes a template for creating copies of a predefined pod   title   PodTemplate  weight  3 auto generated  true           The file is auto generated from the Go source code of the component using a generic  generator  https   github com kubernetes sigs reference docs    To learn how to generate the reference documentation  please read  Contributing to the reference documentation   docs contribute generate ref docs    To update the reference content  please follow the   Contributing upstream   docs contribute generate ref docs contribute upstream   guide  You can file document formatting bugs against the  reference docs  https   github com kubernetes sigs reference docs   project        apiVersion  v1    import  k8s io api core v1        PodTemplate   PodTemplate   PodTemplate describes a template for creating copies of a predefined pod    hr       apiVersion    v1       kind    PodTemplate       metadata     a href    ObjectMeta  a      Standard object s metadata  More info  https   git k8s io community contributors devel sig architecture api conventions md metadata      template     a href    PodTemplateSpec  a      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   PodTemplateSpec   PodTemplateSpec describes the data a pod should have when created from a template   hr       metadata     a href    ObjectMeta  a      Standard object s metadata  More info  https   git k8s io community contributors devel sig architecture api conventions md metadata      spec     a href    PodSpec  a      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   PodTemplateList   PodTemplateList is a list of PodTemplates    hr       apiVersion    v1       kind    PodTemplateList       metadata     a href    ListMeta  a      Standard list metadata  More info  https   git k8s io community contributors devel sig architecture api conventions md types kinds      items       a href    PodTemplate  a    required    List of pod templates         Operations   Operations      hr             get  read the specified PodTemplate       HTTP Request  GET  api v1 namespaces  namespace  podtemplates  name        Parameters       name     in path    string  required    name of the PodTemplate       namespace     in path    string  required     a href    namespace  a        pretty     in query    string     a href    pretty  a          Response   200   a href    PodTemplate  a    OK  401  Unauthorized        list  list or watch objects of kind PodTemplate       HTTP Request  GET  api v1 namespaces  namespace  podtemplates       Parameters       namespace     in path    string  required     a href    namespace  a        allowWatchBookmarks     in query    boolean     a href    allowWatchBookmarks  a        continue     in query    string     a href    continue  a        fieldSelector     in query    string     a href    fieldSelector  a        labelSelector     in query    string     a href    labelSelector  a        limit     in query    integer     a href    limit  a        pretty     in query    string     a href    pretty  a        resourceVersion     in query    string     a href    resourceVersion  a        resourceVersionMatch     in query    string     a href    resourceVersionMatch  a        sendInitialEvents     in query    boolean     a href    sendInitialEvents  a        timeoutSeconds     in query    integer     a href    timeoutSeconds  a        watch     in query    boolean     a href    watch  a          Response   200   a href    PodTemplateList  a    OK  401  Unauthorized        list  list or watch objects of kind PodTemplate       HTTP Request  GET  api v1 podtemplates       Parameters       allowWatchBookmarks     in query    boolean     a href    allowWatchBookmarks  a        continue     in query    string     a href    continue  a        fieldSelector     in query    string     a href    fieldSelector  a        labelSelector     in query    string     a href    labelSelector  a        limit     in query    integer     a href    limit  a        pretty     in query    string     a href    pretty  a        resourceVersion     in query    string     a href    resourceVersion  a        resourceVersionMatch     in query    string     a href    resourceVersionMatch  a        sendInitialEvents     in query    boolean     a href    sendInitialEvents  a        timeoutSeconds     in query    integer     a href    timeoutSeconds  a        watch     in query    boolean     a href    watch  a          Response   200   a href    PodTemplateList  a    OK  401  Unauthorized        create  create a PodTemplate       HTTP Request  POST  api v1 namespaces  namespace  podtemplates       Parameters       namespace     in path    string  required     a href    namespace  a        body     a href    PodTemplate  a   required           dryRun     in query    string     a href    dryRun  a        fieldManager     in query    string     a href    fieldManager  a        fieldValidation     in query    string     a href    fieldValidation  a        pretty     in query    string     a href    pretty  a          Response   200   a href    PodTemplate  a    OK  201   a href    PodTemplate  a    Created  202   a href    PodTemplate  a    Accepted  401  Unauthorized        update  replace the specified PodTemplate       HTTP Request  PUT  api v1 namespaces  namespace  podtemplates  name        Parameters       name     in path    string  required    name of the PodTemplate       namespace     in path    string  required     a href    namespace  a        body     a href    PodTemplate  a   required           dryRun     in query    string     a href    dryRun  a        fieldManager     in query    string     a href    fieldManager  a        fieldValidation     in query    string     a href    fieldValidation  a        pretty     in query    string     a href    pretty  a          Response   200   a href    PodTemplate  a    OK  201   a href    PodTemplate  a    Created  401  Unauthorized        patch  partially update the specified PodTemplate       HTTP Request  PATCH  api v1 namespaces  namespace  podtemplates  name        Parameters       name     in path    string  required    name of the PodTemplate       namespace     in path    string  required     a href    namespace  a        body     a href    Patch  a   required           dryRun     in query    string     a href    dryRun  a        fieldManager     in query    string     a href    fieldManager  a        fieldValidation     in query    string     a href    fieldValidation  a        force     in query    boolean     a href    force  a        pretty     in query    string     a href    pretty  a          Response   200   a href    PodTemplate  a    OK  201   a href    PodTemplate  a    Created  401  Unauthorized        delete  delete a PodTemplate       HTTP Request  DELETE  api v1 namespaces  namespace  podtemplates  name        Parameters       name     in path    string  required    name of the PodTemplate       namespace     in path    string  required     a href    namespace  a        body     a href    DeleteOptions  a            dryRun     in query    string     a href    dryRun  a        gracePeriodSeconds     in query    integer     a href    gracePeriodSeconds  a        pretty     in query    string     a href    pretty  a        propagationPolicy     in query    string     a href    propagationPolicy  a          Response   200   a href    PodTemplate  a    OK  202   a href    PodTemplate  a    Accepted  401  Unauthorized        deletecollection  delete collection of PodTemplate       HTTP Request  DELETE  api v1 namespaces  namespace  podtemplates       Parameters       namespace     in path    string  required     a href    namespace  a        body     a href    DeleteOptions  a            continue     in query    string     a href    continue  a        dryRun     in query    string     a href    dryRun  a        fieldSelector     in query    string     a href    fieldSelector  a        gracePeriodSeconds     in query    integer     a href    gracePeriodSeconds  a        labelSelector     in query    string     a href    labelSelector  a        limit     in query    integer     a href    limit  a        pretty     in query    string     a href    pretty  a        propagationPolicy     in query    string     a href    propagationPolicy  a        resourceVersion     in query    string     a href    resourceVersion  a        resourceVersionMatch     in query    string     a href    resourceVersionMatch  a        sendInitialEvents     in query    boolean     a href    sendInitialEvents  a        timeoutSeconds     in query    integer     a href    timeoutSeconds  a          Response   200   a href    Status  a    OK  401  Unauthorized