# MicroK8s on NVIDIA DGX

**URL:** <https://discuss.kubernetes.io/t/microk8s-on-nvidia-dgx/18225>\
**Category:** microk8s\
**Tags:** docs\
**Created:** [November 24, 2021, 3:21pm UTC](https://discuss.kubernetes.io/t/microk8s-on-nvidia-dgx/18225 "2021-11-24T15:21:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kjackal](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/kjackal/32/1750_2.png) [@kjackal](https://discuss.kubernetes.io/u/kjackal)\
**Post date:** [November 24, 2021, 3:21pm UTC](https://discuss.kubernetes.io/t/microk8s-on-nvidia-dgx/18225/1 "2021-11-24T15:21:57Z")

</div>

On DGX systems you will need to enable GPU support right after you install MicroK8s:

```bash
sudo snap install microk8s --classic
sudo microk8s enable gpu

```

MicroK8s installs the NVIDIA operator which allows you to take advantage of the GPU hardware available.

### Verify the installation

To verify the installation works as expected you can try to perform a CUDA vector addition by applying the following manifest (save this file and use [kubectl apply](https://kubectl.docs.kubernetes.io/references/kubectl/apply/)):

```auto
apiVersion: v1
kind: Pod
metadata:
  name: cuda-vector-add
spec:
  restartPolicy: OnFailure
  containers:
    - name: cuda-vector-add
      image: "k8s.gcr.io/cuda-vector-add:v0.1"
      resources:
        limits:
          nvidia.com/gpu: 1

```

After the addition completes, check the logs of the `cuda-vector-add` pod to see if it succeeded.

### Multi-Instance GPU (MIG)

Multi-Instance GPU (MIG) allows GPU partitioning so they can be safely used by CUDA applications. Starting from MicroK8s v1.23 MIG can be configured via configMaps, please see the [NVIDIA operator docs](https://docs.nvidia.com/datacenter/cloud-native/gpu-operator/gpu-operator-mig.html) on this topic.

---

<div class="post-metadata">

**Author:** ![Kos](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/kos/32/10917_2.png) [@Kos](https://discuss.kubernetes.io/u/Kos)\
**Post date:** [September 29, 2022, 1:36pm UTC](https://discuss.kubernetes.io/t/microk8s-on-nvidia-dgx/18225/2 "2022-09-29T13:36:51Z")

</div>

how can you “apply a manifest”  
detailed command is missing, this was not in my assumed prior knowledge pack 😉
