{"id":23755,"library":"flytekitplugins-pod","title":"Flytekit Pod Plugin","description":"Flytekit plugin enabling K8s Pod tasks in Flyte workflows. Allows users to define custom Pod specifications for running tasks on Kubernetes, providing fine-grained control over resources, sidecars, and scheduling. Current version: 1.16.19. Release cadence is tied to Flytekit releases.","status":"active","version":"1.16.19","language":"python","source_language":"en","source_url":"https://github.com/flyteorg/flytekit","tags":["flyte","kubernetes","pod","workflow","mlops"],"install":[{"cmd":"pip install flytekitplugins-pod","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Core Flyte SDK required","package":"flytekit","optional":false},{"reason":"Kubernetes Python client for Pod specs","package":"kubernetes","optional":false}],"imports":[{"wrong":"from flytekitplugins.pod import PodTemplate","symbol":"PodTemplate","correct":"from flytekitplugins.pod import PodTemplate"}],"quickstart":{"code":"from flytekit import task, workflow\nfrom flytekitplugins.pod import PodTemplate\nfrom kubernetes.client.models import V1PodSpec, V1Container, V1ResourceRequirements\n\n@task(\n    pod_template=PodTemplate(\n        primary_container_name=\"my-container\",\n        pod_spec=V1PodSpec(\n            containers=[\n                V1Container(\n                    name=\"my-container\",\n                    resources=V1ResourceRequirements(\n                        requests={\"cpu\": \"1\", \"memory\": \"2Gi\"},\n                        limits={\"cpu\": \"2\", \"memory\": \"4Gi\"}\n                    )\n                )\n            ]\n        )\n    )\n)\ndef my_pod_task() -> str:\n    return \"Hello from Pod task\"\n\n@workflow\ndef wf() -> str:\n    return my_pod_task()\n\nif __name__ == \"__main__\":\n    print(wf())","lang":"python","description":"Define a Flyte task with a custom PodTemplate that sets resource requests/limits."},"warnings":[{"fix":"Use 'from flytekitplugins.pod import PodTemplate'.","message":"The 'PodTemplate' class was moved to 'flytekitplugins.pod' in Flytekit 1.0. Importing from the old path 'flytekit.extras.pod' will raise an ImportError.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Review Kubernetes API deprecations and update PodSpec accordingly.","message":"Using 'V1PodSpec' directly is supported but some fields like 'node_selector' are deprecated in favor of 'affinity' or 'tolerations' in Kubernetes 1.24+. The plugin may still accept them but they no longer take effect.","severity":"deprecated","affected_versions":"all"},{"fix":"Ensure 'primary_container_name' matches a 'name' in the 'containers' list.","message":"The 'primary_container_name' field in PodTemplate must match a container name in the PodSpec. If they mismatch, the task execution will fail with a generic error.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.16.19':37 'allow':13 'cadenc':39 'control':29 'current':35 'custom':17 'defin':16 'enabl':6 'fine':27 'fine-grain':26 'flyte':11,45 'flytekit':1,4,43 'grain':28 'k8s':7 'kubernet':24,46 'mlop':49 'plugin':3,5 'pod':2,8,18,47 'provid':25 'releas':38,44 'resourc':31 'run':21 'schedul':34 'sidecar':32 'specif':19 'task':9,22 'tie':41 'user':14 'version':36 'workflow':12,48","created_at":"2026-05-01T08:09:26.959029+00:00","updated_at":"2026-05-01T08:09:26.959029+00:00","problems":{"verify_error":"/tmp/tmpwpuy8_2u/venv/lib/python3.12/site-packages/flytekitplugins/pod/__init__.py:17: FutureWarning: This pod plugin is no longer necessary, please use the pod_template and pod_template_name options to @task as described in https://docs.flyte.org/en/latest/deployment/configuration/general.html#conf"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.16.23","cli_name":"","cli_version":null,"type":"library","homepage":"https://flyte.org","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/flytekitplugins-pod/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["workflow","devops","aws","gcp","azure"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}