canonical / microk8s

MicroK8s is a small, fast, single-package Kubernetes for datacenters and the edge.

Home Page:https://microk8s.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Microk8s Addon's GPU is not working.

another-tee opened this issue · comments

I try to follow this guide on my laptop https://microk8s.io/docs/addon-gpu, it gives me an error "Failed to allocate device vector A (error code CUDA driver version is insufficient for CUDA runtime version)!
[Vector addition of 50000 elements]"

Introspection Report
image

This is the GPU information:
image

Solved:

apiVersion: v1
kind: Pod
metadata:
name: cuda-vector-add
spec:
runtimeClassName: nvidia
restartPolicy: OnFailure
containers:

  • name: cuda-vector-add
    env:
    • name: NVIDIA_VISIBLE_DEVICES
      value: all
    • name: NVIDIA_DRIVER_CAPABILITIES
      value: compute,utility
      image: "k8s.gcr.io/cuda-vector-add:v0.1"
      resources:
      limits:
      nvidia.com/gpu: 1