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
py 3.13
✕ build_error
✕ build_error
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())
Upgrade
Version history
1.16.23latest on PyPI · released Jun 2, 2026
Audit
Dependencies
flytekitrequiredCore Flyte SDK required
kubernetesrequiredKubernetes Python client for Pod specs