Registry / workflow / flytekitplugins-pod

flytekitplugins-pod

JSON →
library1.16.23pypypiunverified

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.

pip install flytekitplugins-pod
INSTALL
IMPORT
SIG · FLYTEKITPLUGINS-PO
F
flytekitplugins-pod
workflowpythonv1.16.23
Install
20.9s avg
Import
—
Disk
240MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v1.16.23 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 21.9s
py 3.11
✓ —
✓ 20.8s
py 3.12
✓ —
✓ 17.7s
py 3.13
✕ build_error
✕ build_error
py 3.9
✓ —
✓ 23.3s
240MB installed
● package 240MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PodTemplate
✓ from flytekitplugins.pod import PodTemplate
✗ from flytekitplugins.pod import PodTemplate

Define a Flyte task with a custom PodTemplate that sets resource requests/limits.

from flytekit import task, workflow from flytekitplugins.pod import PodTemplate from kubernetes.client.models import V1PodSpec, V1Container, V1ResourceRequirements @task( pod_template=PodTemplate( primary_container_name="my-container", pod_spec=V1PodSpec( containers=[ V1Container( name="my-container", resources=V1ResourceRequirements( requests={"cpu": "1", "memory": "2Gi"}, limits={"cpu": "2", "memory": "4Gi"} ) ) ] ) ) ) def my_pod_task() -> str: return "Hello from Pod task" @workflow def wf() -> str: return my_pod_task() if __name__ == "__main__": print(wf())
Debug
Known issues
breakingThe 'PodTemplate' class was moved to 'flytekitplugins.pod' in Flytekit 1.0. Importing from the old path 'flytekit.extras.pod' will raise an ImportError.
fix
Use 'from flytekitplugins.pod import PodTemplate'.
affects: >=1.0.0
deprecatedUsing '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.
fix
Review Kubernetes API deprecations and update PodSpec accordingly.
affects: all
gotchaThe '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.
fix
Ensure 'primary_container_name' matches a 'name' in the 'containers' list.
affects: all
Upgrade
Version history
1.16.23latest on PyPI · released Jun 2, 2026
Audit
Dependencies
flytekitrequiredCore Flyte SDK required
kubernetesrequiredKubernetes Python client for Pod specs
Agent activity
38 hits · last 30 days
node
32
OpenAI (training)
1
Resources
flytekitplugins-pod — pip install flytekitplugins-pod · libregistry