Is there a way to add a custom toleration to the f...
# flyte-deployment
g
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?
f
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
💯 1
f
Thanks @faint-smartphone-23356. Note that interruptible-tolerations is a list. Does that work for you @gray-ocean-62145?
👍🏼 1
f
(updated, thanks for the catch jeev)
g
Yes! Thank you both 🙏
👍🏼 1
👍 1
216 Views