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

Michael Tinsley

05/18/2023, 1:21 PM
Is there a way to add a custom toleration to the flag for spot nodes? We need both the affinity for spot, as well as a spot toleration to enable scheduling - however I can’t find where this would be done via the
flyte-binary
helm chart? I’ve seen this but I’m unsure how that is surfaced via the helm chart?
m

Mike Ossareh

05/18/2023, 6:15 PM
via values.yaml you should be able to set:
Copy code
configuration:
  inline:
    plugins:
      k8s:
        interruptible-tolerations:
          - <http://my.toleration.io|my.toleration.io>
          - <http://my.toleration.io/some=value|my.toleration.io/some=value>
I’ve not tried this; we use the
inline
block to insert
default-pod-template-name
which is the same level as
interruptible-tolerations
and that works for us. Whatever is in
inline
gets inserted into this portion of the config map: https://github.com/flyteorg/flyte/blob/master/charts/flyte-binary/templates/configmap.yaml#L198-L200
j

jeev

05/19/2023, 12:39 PM
Thanks @Mike Ossareh. Note that interruptible-tolerations is a list. Does that work for you @Michael Tinsley?
m

Mike Ossareh

05/19/2023, 1:54 PM
(updated, thanks for the catch jeev)
m

Michael Tinsley

05/19/2023, 1:55 PM
Yes! Thank you both 🙏
16 Views