Is there a way to add a custom toleration to the f...
# flyte-deployment
m
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
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
Thanks @Mike Ossareh. Note that interruptible-tolerations is a list. Does that work for you @Michael Tinsley?
m
(updated, thanks for the catch jeev)
m
Yes! Thank you both 🙏
184 Views