Skip to content

Commit

Permalink
Merge pull request kubernetes#42001 from elezar/KEP-4009/add-cdi-to-d…
Browse files Browse the repository at this point in the history
…evice-plugin-api

Add CDI Devices to Device Plugin API
  • Loading branch information
k8s-ci-robot authored and Rishit-dagli committed Aug 12, 2023
2 parents 4e4d103 + 9efc244 commit d7180d8
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7180d8

Please sign in to comment.