AKS icon indicating copy to clipboard operation
AKS copied to clipboard

New K8S 1.10 cluster does not recognize GPU

Open JakobStruye opened this issue 8 years ago • 5 comments

When deploying a new cluster using K8S 1.10.3 and a GPU size (e.g. NC6), the resulting K8S node does not recognize its GPU support. Specifically, kubectl describe node <node-name> will not list anything GPU-related in the Capacity and Allocatable sections. When instead deploying with K8S 1.9.6 and afterwards upgrading to 1.10.3, the node does have "alpha.kubernetes.io/nvidia-gpu" as allocatable resource.

I suspect this is due to "alpha.kubernetes.io/nvidia-gpu" being deprecated, removed and replaced by " nvidia.com/gpu" starting from 1.10: https://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/

JakobStruye avatar Jun 22 '18 14:06 JakobStruye

We have this too. Tried both nvidia.com/gpu and alpha.kubernetes.io/nvidia-gpu ... Pod stays on pending with a message about insufficient resources.

saykumar avatar Jun 25 '18 20:06 saykumar

@mboersma can you please take a look at this?

sauryadas avatar Jul 03 '18 21:07 sauryadas

I can reproduce the problem as described. I'm guessing @JakobStruye is on the right track with the annotation change. I'll get this fixed.

mboersma avatar Jul 03 '18 21:07 mboersma

As a temporary workaround, this command seems to properly enable GPU support on an AKS 1.10.3 cluster:

$ kubectl create -f https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v1.10/nvidia-device-plugin.yml
$ kubectl get nodes --output json | grep nvidia
                    "accelerator": "nvidia",
                    "nvidia.com/gpu": "1",
                    "nvidia.com/gpu": "1",
                            "nvidia/k8s-device-plugin@sha256:96f234268cdc87d9c57288d0589c1841c6c026b3e656ca8c9174c9923d049798",
                            "nvidia/k8s-device-plugin:1.10"

mboersma avatar Jul 05 '18 20:07 mboersma

See the troubleshooting section here:

https://docs.microsoft.com/en-us/azure/aks/gpu-cluster

seanmck avatar Dec 07 '18 06:12 seanmck