fancy-hamburger-89099
09/19/2025, 9:34 AMapiVersion: v1
kind: PodTemplate
metadata:
name: flyte-burst-nodepool
template:
spec:
containers:
- image: replace-me
name: default
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: 100m
memory: 500Mi
nodeSelector:
poolname: burstpool
tolerations:
- effect: NoSchedule
key: burstpool
operator: Equal
value: "true"
And then I try to use it like this
@task(
pod_template_name="flyte-burst-nodepool",
)
def my_burst_task(input_data: str) -> str:
"""
Task that will run on the burst nodepool
"""
processed_data = f"Processed: {input_data}"
return processed_data
Which does actually work, the pod that gets created does have the correct nodeSelector and tolerations, but the resources are ignored completely. In the documentation, I've read that the container name should be specified either as default or primary, I tried both and neither works. I noticed that the container in the pods that are created by Flyte have names like this
name: a8lhq75mv5q525x7d5ln-n0-0
Which references the execution id, so perhaps that is the issue but I couldn't find any mention on how to change the name of the container.
Any help would be greatly appreciated.freezing-airport-6809
freezing-airport-6809
fancy-hamburger-89099
09/19/2025, 2:22 PMfreezing-airport-6809
freezing-airport-6809
freezing-airport-6809
fancy-hamburger-89099
09/19/2025, 2:36 PMfreezing-airport-6809
freezing-airport-6809
fancy-hamburger-89099
09/19/2025, 4:47 PMtask_resources:
limits:
cpu: 1
memory: 2Gi
ephemeral-storage: 500Mi
plugins:
k8s:
default-cpus: 50m
default-memory: 256Mi
And I tried to get rid of that but it falled back to some default variables, I think it's these
https://github.com/flyteorg/flyte/blob/b16ffd76934d690068db1265ac9907a278fba2ee/deployment/eks/flyte_helm_generated.yaml#L203-L213
Edit: When i get rid of the limits and defaults, it yields these resources and I could not find the source of these defaults
resources:
limits:
cpu: "2"
memory: 200Mi
requests:
cpu: "2"
memory: 200Mi