Skip to main content

PodTemplate

Custom PodTemplate specification for a Task.

Attributes

  • pod_spec: Optional["V1PodSpec"] = V1PodSpec()

    • Custom PodTemplate specification for a Task.
  • primary_container_name: str = _PRIMARY_CONTAINER_DEFAULT_NAME

    • Custom PodTemplate specification for a Task.
  • labels: Optional[Dict[str, str]] = None

    • Custom PodTemplate specification for a Task.
  • annotations: Optional[Dict[str, str]] = None

    • Custom PodTemplate specification for a Task.

Methods

def to_k8s_pod()
  • Converts the PodTemplate object to a Kubernetes Pod object.

  • Return Value: K8sPod

    • A Kubernetes Pod object representing the PodTemplate.