@@ -67,10 +67,10 @@ The following diagram shows the software components that Kubernetes uses to run
67
67
a[Kubelet] --> b[CRI] --> c[Kata\n Runtime] --> d[Lightweight\n QEMU VM] --> e[Lightweight\n Guest OS] --> f[Pod] --> g[Container]
68
68
69
69
70
- NVIDIA supports Kata Containers by using the Confidential Containers Operator to install the Kata runtime and QEMU.
71
- Even though the Operator isn't used for confidential computing in this configuration, the Operator
72
- simplifies the installation of the Kata runtime.
70
+ NVIDIA supports Kata Containers by using Helm to run a daemon set that installs the Kata runtime and QEMU.
73
71
72
+ The daemon set runs the `kata-deploy.sh ` script and configures each worker node with a runtime class, ``kata-qemu-nvidia-gpu ``,
73
+ and configures containerd for the runtime class.
74
74
75
75
About NVIDIA Kata Manager
76
76
=========================
@@ -82,43 +82,42 @@ The manager downloads an NVIDIA optimized Linux kernel image and initial RAM dis
82
82
provides the lightweight operating system for the virtual machines that run in QEMU.
83
83
These artifacts are downloaded from the NVIDIA container registry, nvcr.io, on each worker node.
84
84
85
- The manager also configures each worker node with a runtime class, ``kata-qemu-nvidia-gpu ``,
86
- and configures containerd for the runtime class.
85
+ .. comment
87
86
88
- NVIDIA Kata Manager Configuration
89
- =================================
87
+ NVIDIA Kata Manager Configuration
88
+ =================================
90
89
91
- The following part of the cluster policy shows the fields related to the manager:
90
+ The following part of the cluster policy shows the fields related to the manager:
92
91
93
- .. code-block :: yaml
92
+ .. code-block:: yaml
94
93
95
- kataManager :
96
- enabled : true
97
- config :
98
- artifactsDir : /opt/nvidia-gpu-operator/artifacts/runtimeclasses
99
- runtimeClasses :
100
- - artifacts :
101
- pullSecret : " "
102
- url : nvcr.io/nvidia/cloud-native/kata-gpu-artifacts:ubuntu22.04-525
103
- name : kata-qemu-nvidia-gpu
104
- nodeSelector : {}
105
- - artifacts :
106
- pullSecret : " "
107
- url : nvcr.io/nvidia/cloud-native/kata-gpu-artifacts:ubuntu22.04-535-snp
108
- name : kata-qemu-nvidia-gpu-snp
109
- nodeSelector : {}
110
- repository : nvcr.io/nvidia/cloud-native
111
- image : k8s-kata-manager
112
- version : v0.1.0
113
- imagePullPolicy : IfNotPresent
114
- imagePullSecrets : []
115
- env : []
116
- resources : {}
117
-
118
- The ``kata-qemu-nvidia-gpu `` runtime class is used with Kata Containers.
119
-
120
- The ``kata-qemu-nvidia-gpu-snp `` runtime class is used with Confidential Containers
121
- and is installed by default even though it is not used with this configuration.
94
+ kataManager:
95
+ enabled: true
96
+ config:
97
+ artifactsDir: /opt/nvidia-gpu-operator/artifacts/runtimeclasses
98
+ runtimeClasses:
99
+ - artifacts:
100
+ pullSecret: ""
101
+ url: nvcr.io/nvidia/cloud-native/kata-gpu-artifacts:ubuntu22.04-525
102
+ name: kata-qemu-nvidia-gpu
103
+ nodeSelector: {}
104
+ - artifacts:
105
+ pullSecret: ""
106
+ url: nvcr.io/nvidia/cloud-native/kata-gpu-artifacts:ubuntu22.04-535-snp
107
+ name: kata-qemu-nvidia-gpu-snp
108
+ nodeSelector: {}
109
+ repository: nvcr.io/nvidia/cloud-native
110
+ image: k8s-kata-manager
111
+ version: v0.1.0
112
+ imagePullPolicy: IfNotPresent
113
+ imagePullSecrets: []
114
+ env: []
115
+ resources: {}
116
+
117
+ The ``kata-qemu-nvidia-gpu`` runtime class is used with Kata Containers.
118
+
119
+ The ``kata-qemu-nvidia-gpu-snp`` runtime class is used with Confidential Containers
120
+ and is installed by default even though it is not used with this configuration.
122
121
123
122
124
123
*********************************
@@ -197,7 +196,7 @@ Prerequisites
197
196
198
197
* Your hosts are configured to support IOMMU.
199
198
200
- If the output from running ``ls /sys/kernel/iommu_groups `` includes ``0 ``, `` 1 ``, and so on ,
199
+ If the output from running ``ls /sys/kernel/iommu_groups `` includes a value greater than ``0 ``,
201
200
then your host is configured for IOMMU.
202
201
203
202
If a host is not configured or you are unsure, add the ``intel_iommu=on `` Linux kernel command-line argument.
@@ -228,22 +227,116 @@ Installing and configuring your cluster to support the NVIDIA GPU Operator with
228
227
This step ensures that you can continue to run traditional container workloads with GPU or vGPU workloads on some nodes in your cluster.
229
228
Alternatively, you can set the default sandbox workload to ``vm-passthrough `` to run confidential containers on all worker nodes.
230
229
231
- #. Install the Confidential Containers Operator .
230
+ #. Install the Kata Deploy Helm chart .
232
231
233
- This step installs the Operator and also the Kata Containers runtime that NVIDIA uses for Kata Containers .
232
+ This step runs ` kata-deploy.sh ` on each node and installs the Kata Containers runtime on each node .
234
233
235
234
#. Install the NVIDIA GPU Operator.
236
235
237
236
You install the Operator and specify options to deploy the operands that are required for Kata Containers.
238
237
239
238
After installation, you can run a sample workload.
240
239
241
- .. |project-name | replace :: Kata Containers
240
+ *************************************
241
+ Kata Deploy Helm Chart Customizations
242
+ *************************************
243
+
244
+ The following table shows the configurable values from the Kata Deploy Helm chart.
245
+
246
+ .. list-table ::
247
+ :widths: 20 50 30
248
+ :header-rows: 1
249
+
250
+ * - Parameter
251
+ - Description
252
+ - Default
253
+
254
+ * - ``kataDeploy.allowedHypervisorAnnotations ``
255
+ - Specifies the
256
+ `hypervisor annotations <https://github.com/kata-containers/kata-containers/blob/main/docs/how-to/how-to-set-sandbox-config-kata.md#hypervisor-options >`__
257
+ to enable in the Kata configuration file on each node.
258
+ Specify a space-separated string of values such as ``enable_iommu initrd kernel ``.
259
+ - None
260
+
261
+ * - ``kataDeploy.createRuntimeClasses ``
262
+ - When set to ``true ``, the ``kata-deploy.sh `` script installs the runtime classes on the nodes.
263
+ - ``true ``
264
+
265
+ * - ``kataDeploy.createDefaultRuntimeClass ``
266
+ - When set to ``true ``, the ``kata-deploy.sh `` script sets the runtime class specified in the ``defaultShim `` field as the default Kata runtime class.
267
+ - ``false ``
268
+
269
+ * - ``kataDeploy.debug ``
270
+ - When set to ``true ``, the ``kata-deploy.sh `` script enables debugging and a debug console in the Kata configuration file on each node.
271
+ - ``false ``
272
+
273
+ * - ``kataDeploy.defaultShim ``
274
+ - Specifies the shim to set as the default Kata runtime class.
275
+ This field is ignored unless you specify ``createDefaultRuntimeClass: true ``.
276
+ - ``qemu-nvidia-gpu ``
277
+
278
+ * - ``kataDeploy.imagePullPolicy ``
279
+ - Specifies the image pull policy for the ``kata-deploy `` container.
280
+ - ``Always ``
281
+
282
+ * - ``kataDeploy.k8sDistribution ``
283
+ - FIXME
284
+ - ``k8s ``
285
+
286
+ * - ``kataDeploy.repository ``
287
+ - Specifies the image repository for the ``kata-deploy `` container.
288
+ - ``nvcr.io/nvidia/cloud-native ``
289
+
290
+ * - ``kataDeploy.shims ``
291
+ - Specifies the shim binaries to install on each node.
292
+ Specify a space-separated string of values.
293
+ - ``qemu-nvidia-gpu ``
294
+
295
+ * - ``kataDeploy.version ``
296
+ - Specifies the version of the ``kata-deploy `` container to run.
297
+ - ``latest ``
298
+
299
+
300
+ **********************************
301
+ Install the Kata Deploy Helm Chart
302
+ **********************************
303
+
304
+ Perform the following steps to install the Helm chart:
305
+
306
+ #. Add and update the NVIDIA Helm repository:
307
+
308
+ .. code-block :: console
309
+
310
+ $ helm repo add nvidia https://helm.ngc.nvidia.com/nvidia \
311
+ && helm repo update
312
+
313
+ #. Specify at least the following options when you install the chart.
314
+
315
+ .. code-block :: console
316
+
317
+ $ helm install --wait --generate-name \
318
+ -n kube-system \
319
+ nvidia/kata-deploy
320
+
321
+ #. Optional: Verify the installation.
322
+
323
+ - Confirm the ``kata-deploy `` containers are running:
324
+
325
+ .. code-block :: console
326
+
327
+ $ kubectl get pods -n kube-system -l FIXME
328
+
329
+ - Confirm the runtime class is installed:
330
+
331
+ .. code-block :: console
332
+
333
+ $ kubectl get runtimeclass kata-qemu-nvidia-gpu
334
+
335
+ *Example Output *
242
336
243
- .. include :: gpu-operator-confidential-containers.rst
244
- :start-after: start-install-coco-operator
245
- :end-before: end-install-coco-operator
337
+ .. code-block :: output
246
338
339
+ FIXME
247
340
248
341
*******************************
249
342
Install the NVIDIA GPU Operator
@@ -262,7 +355,7 @@ Perform the following steps to install the Operator for use with Kata Containers
262
355
&& helm repo update
263
356
264
357
#. Specify at least the following options when you install the Operator.
265
- If you want to run | project-name | by default on all worker nodes, also specify ``--set sandboxWorkloads.defaultWorkload=vm-passthough ``.
358
+ If you want to run Kata Containers by default on all worker nodes, also specify ``--set sandboxWorkloads.defaultWorkload=vm-passthough ``.
266
359
267
360
.. code-block :: console
268
361
0 commit comments