https://flyte.org logo
Title
j

Jimmy Du

03/07/2023, 12:21 AM
Hi Flyte community, Does using the pod template setting for task registration completely override the pod template that Flyte defaults to or does it add to it? I'd like to add the following setting so my raw container Flyte task pods can refer to the their corresponding settings (based on stage/app):
envFrom:
      - configMapRef:
          name: special-config
      - secretRef:
          name: special-config
https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/pods/pod-configmap-envFrom.yaml
k

Ketan (kumare3)

03/07/2023, 2:23 AM
Cc @Dan Rammer (hamersaw) / @Byron Hsu
b

Byron Hsu

03/07/2023, 2:32 AM
Yes it overrides the default podtemplate in the backend. The override is “append” if list/dict. “”Replace” if a single value
Do you run into any issue
d

Dan Rammer (hamersaw)

03/07/2023, 2:46 AM
To be more accurate - the default
PodTemplate
(in flytepropeller settings) is applied to the task by flytepropeller as the base configuration. If you specify a
pod_template_name
in the task decorate this will apply the specified k8s
PodTemplate
resource instead of the default
PodTemplate
(from propeller settings). However, if you use the
pod_template
argument in the task decorator to define an entire
PodTemplate
as an argument this will applied in addition to the default
PodTemplate
. We are working on getting this documented.
j

Jimmy Du

03/07/2023, 2:48 AM
Thanks for clarifying!