Is there a way to automatically taint a few node p...
# ask-the-community
Is there a way to automatically taint a few node pools to allow gpu access upon creation? Like this but through the values.yaml when helm installing? Also what should the key and value be for the resource tolerations?
can you elaborate a bit?
what do you mean by automatically taint?
setting taints on node pools is not something that’s done by flyte. that will have to be done by whoever is typically in charge of setting up the aws/eks resources.
once the taints are set, the tolerations for the gpu resource type should just be whatever you set as the taint.
So I can set the tolerations on the node pools by doing this in values.yaml
Copy code
      # -- Configuration section for all K8s specific plugins [Configuration structure](<>)
        default-env-vars: []
        default-cpus: 100m
        default-memory: 100Mi
          - <|>:
            - key: "flyte/gpu"
              operator: "Equal"
              value: "dedicated"
              effect: "NoSchedule"
But in order for a node pool to have a taint that matches these tolerations, I would need to taint them after helm installation. Is there a way to avoid doing the manual step of looking up node pools and setting the taint? It would be ideal if the node pool creator would apply taints to a few node pools.
how are you creating the node pools?
and yes that’s correct - it’s a separate step
but note that this is just text (well a map of text)
basically it’s saying, for tasks that use that resource, apply these tolerations.
if you’re using terraform or something to create the node pools i’m sure it’s possible to add the taints at creation time.
flyte itself does not create node pools, it merely uses them
okay i understand now. thank you. I thought flyte created node pools since there are some default nodes under the development namespace.