PodTemplate

    apiVersion: v1

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

    PodTemplate describes a template for creating copies of a predefined pod.


    PodTemplateSpec describes the data a pod should have when created from a template


    • metadata (ObjectMeta)

      Standard object’s metadata. More info:

    • spec (PodSpec)

      Specification of the desired behavior of the pod. More info:

    PodTemplateList is a list of PodTemplates.



    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

    Response

    200 (): 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

    • allowWatchBookmarks (in query): boolean

      allowWatchBookmarks

    • continue (in query): string

    • fieldSelector (in query): string

      fieldSelector

    • labelSelector (in query): string

    • limit (in query): integer

      limit

    • pretty (in query): string

    • resourceVersion (in query): string

      resourceVersion

    • resourceVersionMatch (in query): string

    • timeoutSeconds (in query): integer

      timeoutSeconds

    • watch (in query): boolean

    Response

    200 (): OK

    401: Unauthorized

    HTTP Request

    GET /api/v1/podtemplates

    Parameters

    • allowWatchBookmarks (in query): boolean

    • continue (in query): string

    • fieldSelector (in query): string

      fieldSelector

    • labelSelector (in query): string

    • limit (in query): integer

      limit

    • pretty (in query): string

    • resourceVersion (in query): string

      resourceVersion

    • resourceVersionMatch (in query): string

    • timeoutSeconds (in query): integer

      timeoutSeconds

    • watch (in query): boolean

    Response

    200 (): OK

    401: Unauthorized

    create create a PodTemplate

    HTTP Request

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

    Parameters

    • namespace (in path): string, required

    • body: PodTemplate, required

    • dryRun (in query): string

    • fieldValidation (in query): string

      fieldValidation

    • pretty (in query): string

    Response

    200 (): OK

    201 (PodTemplate): Created

    202 (): Accepted

    401: Unauthorized

    HTTP Request

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

    Parameters

    • 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

      fieldManager

    • fieldValidation (in query): string

    • pretty (in query): string

      pretty

    Response

    200 (PodTemplate): OK

    201 (): 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

    • body: , required

    • dryRun (in query): string

      dryRun

    • fieldManager (in query): string

    • fieldValidation (in query): string

      fieldValidation

    • force (in query): boolean

    • pretty (in query): string

      pretty

    Response

    200 (PodTemplate): OK

    201 (): Created

    401: Unauthorized

    HTTP Request

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

    Parameters

    • name (in path): string, required

      name of the PodTemplate

    • namespace (in path): string, required

    • body: DeleteOptions

    • dryRun (in query): string

    • gracePeriodSeconds (in query): integer

      gracePeriodSeconds

    • pretty (in query): string

    • propagationPolicy (in query): string

      propagationPolicy

    Response

    200 (PodTemplate): OK

    202 (): Accepted

    401: Unauthorized

    deletecollection delete collection of PodTemplate

    HTTP Request

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

    Parameters

    • namespace (in path): string, required

    • body: DeleteOptions

    • continue (in query): string

    • dryRun (in query): string

      dryRun

    • fieldSelector (in query): string

    • gracePeriodSeconds (in query): integer

      gracePeriodSeconds

    • labelSelector (in query): string

    • limit (in query): integer

      limit

    • pretty (in query): string

    • propagationPolicy (in query): string

      propagationPolicy

    • resourceVersion (in query): string

    • resourceVersionMatch (in query): string

      resourceVersionMatch

    Response

    401: Unauthorized