https://flyte.org logo
#flyte-deployment
Title
# flyte-deployment
b

Bosco Raju

05/23/2023, 6:30 PM
Hi Flyte team, I am trying to add node selector and tolerations to my Flyte task pods. What is the difference between
default-node-selector
and
interruptible-node-selector?
Copy code
configuration:
  inline:
    plugins:
      k8s:
        default-node-selector:
           node ="spot"
        default-tolerations:
           - xxxxx
s

Samhita Alla

05/24/2023, 4:33 AM
IIUC
interruptible-node-selector
is for spot instances.
b

Bosco Raju

05/24/2023, 5:07 AM
Thanks @Samhita Alla 🙂
m

Michael Tinsley

05/24/2023, 8:50 AM
Yep - interruptible is when you add
@task(interruptible=True)
so you should add any any spot affinities here
b

Bosco Raju

05/24/2023, 5:43 PM
Thanks @Michael Tinsley. I am using managed node groups to provision my spot instances. I want all my task to run on spot instances so default-node-selector worked for me. Thanks for pointing out that you can set interruptible at task level :)
11 Views