Microk8s 1.25 nvidia GPU not installing correctly (using host drivers)

Cluster information:

Kubernetes version: 1.25.2 revision 4055
Cloud being used: bare-metal
Installation method: snap
Host OS: ubuntu 22.04 (same thing using 20.04)
CNI and version:
CRI and version:

microk8s enable gpu

Infer repository core for addon gpu
Enabling NVIDIA GPU
Addon core/dns is already enabled
Addon core/helm3 is already enabled
Checking if NVIDIA driver is already installed
GPU 0: NVIDIA GeForce RTX 3090 (UUID: GPU-68faec82-f488-c437-8091-de8d1191237c)
GPU 1: NVIDIA GeForce RTX 2080 Ti (UUID: GPU-2ce591c0-ec6e-0ea1-120c-ce11155b2717)
Using host GPU driver
“nvidia” has been added to your repositories
Error: INSTALLATION FAILED: cannot re-use a name that is still in use
NVIDIA is enabled

However, when I get the status the gpu addon is still disabled. I think this should be working since v1.22 but for some reason I get the error and the add-on is disabled, despite the messaging saying it is enabled. Currently working with nvidia drivers v520 but I had the same issue using our previous installed version (485 if I’m not mistaken).

Thanks

1 Like

I retried with v1.22, and although the output is the same, after a couple of reboots the add-on is enabled.