Skip to content

Commit cb15969

Browse files
Update microk8s documentation about gpu-operator
Microk8s automatically uses helm to install the operator with a simple command
1 parent baf96a6 commit cb15969

File tree

1 file changed

+13
-32
lines changed

1 file changed

+13
-32
lines changed

gpu-operator/getting-started.rst

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ To view all the options, run ``helm show values nvidia/gpu-operator``.
160160
* - ``daemonsets.labels``
161161
- Map of custom labels to add to all GPU Operator managed pods.
162162
- ``{}``
163-
163+
164164
* - ``dcgmExporter.enabled``
165-
- By default, the Operator gathers GPU telemetry in Kubernetes via `DCGM Exporter <https://docs.nvidia.com/datacenter/cloud-native/gpu-telemetry/latest/dcgm-exporter.html>`_.
165+
- By default, the Operator gathers GPU telemetry in Kubernetes via `DCGM Exporter <https://docs.nvidia.com/datacenter/cloud-native/gpu-telemetry/latest/dcgm-exporter.html>`_.
166166
Set this value to ``false`` to disable it.
167167
Available values are ``true`` (default) or ``false``.
168168
- ``true``
@@ -186,10 +186,10 @@ To view all the options, run ``helm show values nvidia/gpu-operator``.
186186

187187
* - ``driver.kernelModuleType``
188188
- Specifies the type of the NVIDIA GPU Kernel modules to use.
189-
Valid values are ``auto`` (default), ``proprietary``, and ``open``.
190-
189+
Valid values are ``auto`` (default), ``proprietary``, and ``open``.
190+
191191
``Auto`` means that the recommended kernel module type (open or proprietary) is chosen based on the GPU devices on the host and the driver branch used.
192-
Note, ``auto`` is only supported with the 570.86.15 and 570.124.06 or later driver containers.
192+
Note, ``auto`` is only supported with the 570.86.15 and 570.124.06 or later driver containers.
193193
550 and 535 branch drivers do not yet support this mode.
194194
``Open`` means the open kernel module is used.
195195
``Proprietary`` means the proprietary module is used.
@@ -546,36 +546,17 @@ Refer to the :ref:`v24.9.0-known-limitations`.
546546
MicroK8s
547547
========
548548

549-
For MicroK8s, set the following in the ``ClusterPolicy``.
550-
551-
.. code-block:: yaml
552-
553-
toolkit:
554-
env:
555-
- name: CONTAINERD_CONFIG
556-
value: /var/snap/microk8s/current/args/containerd-template.toml
557-
- name: CONTAINERD_SOCKET
558-
value: /var/snap/microk8s/common/run/containerd.sock
559-
- name: CONTAINERD_RUNTIME_CLASS
560-
value: nvidia
561-
- name: CONTAINERD_SET_AS_DEFAULT
562-
value: "true"
563-
564-
These options can be passed to GPU Operator during install time as below.
549+
For MicroK8s, is necessary to install the snap with the ``--classic`` flag and enable the
550+
``gpu`` addon.
565551

566552
.. code-block:: console
567553
568-
helm install gpu-operator -n gpu-operator --create-namespace \
569-
nvidia/gpu-operator $HELM_OPTIONS \
570-
--version=${version} \
571-
--set toolkit.env[0].name=CONTAINERD_CONFIG \
572-
--set toolkit.env[0].value=/var/snap/microk8s/current/args/containerd-template.toml \
573-
--set toolkit.env[1].name=CONTAINERD_SOCKET \
574-
--set toolkit.env[1].value=/var/snap/microk8s/common/run/containerd.sock \
575-
--set toolkit.env[2].name=CONTAINERD_RUNTIME_CLASS \
576-
--set toolkit.env[2].value=nvidia \
577-
--set toolkit.env[3].name=CONTAINERD_SET_AS_DEFAULT \
578-
--set-string toolkit.env[3].value=true
554+
sudo snap install microk8s --classic
555+
microk8s enable gpu
556+
557+
This will install the GPU Operator and the NVIDIA Container Toolkit in the
558+
``gpu-operator-resources`` namespace. For more information, refer to the
559+
`MicroK8s GPU documentation <https://microk8s.io/docs/addon-gpu>`__.
579560

580561
.. _running sample gpu applications:
581562
.. _verify gpu operator install:

0 commit comments

Comments
 (0)