Hey flyte community I have a question about pod ta...
# ask-the-community
l
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'},
        ),
    ),
)
f
l
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.
k
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
l
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
y
hey @Louis DiNatale apologies for all the confusion - do you have time to hop on a quick call?
cc @Dan Rammer (hamersaw) if you’re still around or back from your run
152 Views