Skip to content

Commit 3636b53

Browse files
Update edge/nvidia-gpu-with-device-edge docs (#235)
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
1 parent 40e9bac commit 3636b53

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

edge/nvidia-gpu-with-device-edge.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,19 @@ The NVIDIA container toolkit supports the distributions listed in the `NVIDIA Co
134134

135135
.. code-block:: console
136136
137-
$ curl -s -L https://nvidia.github.io/libnvidia-container/rhel8.7/libnvidia-container.repo | sudo tee /etc/yum.repos.d/libnvidia-container.repo
137+
$ curl -s -L https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo | sudo tee /etc/yum.repos.d/libnvidia-container.repo
138138
139139
#. Install the NVIDIA Container Toolkit for RHEL:
140140

141141
.. code-block:: console
142142
143143
$ sudo dnf install nvidia-container-toolkit -y
144144
145+
#. Set the NVIDIA Container Toolkit to use the CDI mode:
146+
147+
.. code-block:: console
148+
149+
$ sudo nvidia-ctk config --in-place --set nvidia-container-runtime.mode=cdi
145150
146151
#. The NVIDIA Container Toolkit requires some SELinux permissions to work properly. These permissions are set in three steps.
147152

@@ -191,7 +196,7 @@ The NVIDIA container toolkit supports the distributions listed in the `NVIDIA Co
191196
$ semodule_package --outfile nvidia-container-microshift.pp --module nvidia-container-microshift.mod
192197
193198
194-
F. Apply the policy:
199+
F. Apply the policy:
195200

196201
.. code-block:: console
197202
@@ -214,19 +219,19 @@ The deployment consists of adding manifests and a ``kustomize`` configuration to
214219

215220
.. code-block:: console
216221
217-
$ sudo mkdir -p /etc/microshift/manifests
222+
$ sudo mkdir -p /etc/microshift/manifests.d/nvidia-device-plugin
218223
219-
#. The device plugin runs in privileged mode, so you need to isolate it from other workloads by running it in its own namespace, ``nvidia-device-plugin``. To add the plugin to the manifests deployed by MicroShift at start time, download the configuration file and save it at ``/etc/microshift/manifests/nvidia-device-plugin.yml``.
224+
#. The device plugin runs in privileged mode, so you need to isolate it from other workloads by running it in its own namespace, ``nvidia-device-plugin``. To add the plugin to the manifests deployed by MicroShift at start time, download the configuration file and save it at ``/etc/microshift/manifests.d/nvidia-device-plugin``.
220225

221226
.. code-block:: console
222227
223-
$ curl -s -L https://gitlab.com/nvidia/kubernetes/device-plugin/-/raw/main/deployments/static/nvidia-device-plugin-privileged-with-service-account.yml | sudo tee /etc/microshift/manifests/nvidia-device-plugin.yml
228+
$ curl -s -L https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/refs/heads/main/deployments/static/nvidia-device-plugin-privileged-with-service-account.yml | sudo tee /etc/microshift/manifests.d/nvidia-device-plugin/nvidia-device-plugin.yml
224229
225230
#. The resources are not created automatically even though the files exist. You need to add them to the ``kustomize`` configuration. Do this by adding a single ``kustomization.yaml`` file in the ``manifests`` folder that references all the resources you want to create.
226231

227232
.. code-block:: console
228233
229-
$ cat <<EOF | sudo tee /etc/microshift/manifests/kustomization.yaml
234+
$ cat <<EOF | sudo tee /etc/microshift/manifests.d/nvidia-device-plugin/kustomization.yaml
230235
---
231236
apiVersion: kustomize.config.k8s.io/v1beta1
232237
kind: Kustomization

0 commit comments

Comments
 (0)