In this section, you will install and enable your GPU in MicroK8s.
Download and install Nvidia GPU drivers from the official Nvidia website.
The instructions to enable GPU in MicroK8s differ depending on the version of MicroK8s you are using.
For versions of MicroK8s up to, and including, version 1.20, use the following command.
microk8s.enable gpu
you can follow the instructions below to enable GPU:
Microk8s GPU add-on:
Microk8s GPU add-on in Microk8s 1.21 version: