Hey flyte community I have a question about pod ta...
# flyte-support
n
Hey flyte community I have a question about pod tasks. If i want to add node_selector to a pod is it as simple as this?
Copy code
@task(
    task_config=Pod(
        pod_spec=V1PodSpec(
            node_selector={'node_group': 'memory'},
        ),
    ),
)
q
n
Im a little lost looking at this, is the suggestion here to simply be able to add basic k8s pods elements to the task? While im going through this the convoluted solution that i may have working to simply add a node_selector really makes me question all of this.
g
You can also add podTemplate to propeller config map, then propeller will merge this template to task’s podTemplate. https://docs.flyte.org/en/latest/deployment/cluster_config/general.html#using-default-k8s-podtemplates
However, all the task may have same node selector
n
I already use the default node selector i need to just change it for a workflow
the default worked fine
But thank you very much for the idea
t
hey @nice-zebra-99977 apologies for all the confusion - do you have time to hop on a quick call?
cc @hallowed-mouse-14616 if you’re still around or back from your run
153 Views