Skip to content

Adding nodeSelectors to GPUs #1331

Answered by SandraGH5
SandraGH5 asked this question in Q&A
Discussion options

You must be logged in to vote

Flyte propeller allows you to specify a toleration for the GPU resource: https://github.com/flyteorg/flyteplugins/blob/892f35eb8a0041969039e56b64a0467f17e6809c/go/tasks/pluginmachinery/flytek8s/config/config.go#L99
and it adds the appropriate resource to the pod so that it gets scheduled on a node with GPUs: https://github.com/flyteorg/flyteplugins/blob/892f35eb8a0041969039e56b64a0467f17e6809c/go/tasks/pluginmachinery/flytek8s/container_helper.go#L23

When you specify a gpu resource in the task resource requirements, it will add the correct resource requirement, and the appropriate toleration to the pod so that it can schedule on the right node pool. Using multiple gpu node pools will like…

Replies: 1 comment

Comment options

SandraGH5
Aug 12, 2021
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by SandraGH5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant