From 9af46c8913a360af15a547e6799f5bdfbb9e2e31 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Wed, 12 Jul 2023 22:10:34 +0200 Subject: [PATCH 1/2] Add CDI Devices to Device Plugin API This change expands the documentation for the Device Plugin to include the addition of support for CDI Device Names as a feature-gated feature in the 1.28 release. Signed-off-by: Evan Lezar --- .../compute-storage-net/device-plugins.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/content/en/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md b/content/en/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md index 7722d9ffa8ef3..f07ecc8fcbcc9 100644 --- a/content/en/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md +++ b/content/en/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md @@ -147,6 +147,22 @@ The general workflow of a device plugin includes the following steps: runtime configurations for accessing the allocated devices. The kubelet passes this information to the container runtime. + An `AllocateResponse` contains zero or more `ContainerAllocateResponse` objects. In these, the + device plugin defines modifications that must be made to a container's definition to provide + access to the device. These modifications include: + + * annotations + * device nodes + * environment variables + * mounts + * fully-qualified CDI device names + + {{< note >}} + The processing of the fully-qualified CDI device names by the Device Manager requires + the `DevicePluginCDIDevices` feature gate to be enabled. This was added as an alpha feature in + v1.28. + {{< note >}} + ### Handling kubelet restarts A device plugin is expected to detect kubelet restarts and re-register itself with the new From 9efc24421a149071b8c2b3224bc27bb6f32875bd Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 25 Jul 2023 12:13:21 +0200 Subject: [PATCH 2/2] Update content/en/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md Co-authored-by: Mengjiao Liu <44460091+mengjiao-liu@users.noreply.github.com> --- .../extend-kubernetes/compute-storage-net/device-plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md b/content/en/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md index f07ecc8fcbcc9..bd046231f29ae 100644 --- a/content/en/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md +++ b/content/en/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md @@ -161,7 +161,7 @@ The general workflow of a device plugin includes the following steps: The processing of the fully-qualified CDI device names by the Device Manager requires the `DevicePluginCDIDevices` feature gate to be enabled. This was added as an alpha feature in v1.28. - {{< note >}} + {{< /note >}} ### Handling kubelet restarts