Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - Add GPU resource requests/limits #52

Open
wants to merge 1 commit into
base: custom
Choose a base branch
from
Open

Conversation

sl1pm4t
Copy link
Owner

@sl1pm4t sl1pm4t commented Sep 5, 2018

FYI @abagshaw

I haven't been able to test successfully yet. On GKE, the pod stays in pending state forever because the scheduler thinks there aren't any GPU's available. This is despite creating the cluster with GPU support etc. However, assuming your cluster is setup correctly, I think this should work.

Due to Terraform resource attribute naming restrictions (no periods or slashes) the resource name is nvidia_gpu instead of the Kubernetes documented name of nvidia.com/gpu.

Example:

      resources {
        limits {
          nvidia_gpu = 1
        }
      }

Fixes #37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant