flytekitplugins.pod.Pod#

class flytekitplugins.pod.Pod(pod_spec, primary_container_name, labels=None, annotations=None)[source]#

Pod is a platform-wide configuration that uses pod templates. By default, every task is launched as a container in a pod. This plugin helps expose a fully modifiable Kubernetes pod spec to customize the task execution runtime. To use pod tasks: (1) Define a pod spec, and (2) Specify the primary container name. :param V1PodSpec pod_spec: Kubernetes pod spec. https://kubernetes.io/docs/concepts/workloads/pods :param str primary_container_name: the primary container name :param Optional[Dict[str, str]] labels: Labels are key/value pairs that are attached to pod spec :param Optional[Dict[str, str]] annotations: Annotations are key/value pairs that are attached to arbitrary non-identifying metadata to pod spec.

Methods

Attributes

Parameters
annotations#
labels#
pod_spec#
primary_container_name#