Skip to content

Comments

feat: Implementation of dynamic USB device allocation in a cluster using the Kubernetes DRA mechanism.#1696

Merged
yaroslavborbat merged 1 commit intomainfrom
feat/dra
Feb 18, 2026
Merged

feat: Implementation of dynamic USB device allocation in a cluster using the Kubernetes DRA mechanism.#1696
yaroslavborbat merged 1 commit intomainfrom
feat/dra

Conversation

@yaroslavborbat
Copy link
Member

@yaroslavborbat yaroslavborbat commented Nov 13, 2025

Description

Implementation of dynamic USB device allocation in a cluster using the Kubernetes DRA mechanism.

How It Works

Udev monitor – a component that monitors USB devices in the system via udev. When a device is connected or disconnected, it receives events and updates the list of available resources.

Workflow chain:

  1. Monitoring – the udev monitor subscribes to add/remove events for USB devices.
  2. Resource Registration – detected devices are registered as allocatable resources on the node.
  3. Allocation – when a pod is created with a request for a USB device via DRA, the driver allocates the requested device to the pod.
  4. Release – after the pod is deleted, the device is returned to the available pool.

As a result, USB devices become dynamic resources: they do not need to be statically reserved in advance and are automatically accounted for when they appear or disappear in the system.

Support in Kubevirt

deckhouse/3p-kubevirt#49

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: vm
type: feature
summary: Implementation of dynamic USB device allocation in a cluster using the Kubernetes DRA mechanism.

danilrwx
danilrwx previously approved these changes Feb 6, 2026
@danilrwx danilrwx self-requested a review February 6, 2026 14:43
z9r5
z9r5 previously approved these changes Feb 6, 2026
@yaroslavborbat yaroslavborbat dismissed stale reviews from z9r5 and danilrwx via 00ae620 February 16, 2026 08:03
@yaroslavborbat yaroslavborbat force-pushed the feat/dra branch 2 times, most recently from c026472 to be14fd0 Compare February 16, 2026 16:15
Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
@yaroslavborbat yaroslavborbat merged commit 24e7e14 into main Feb 18, 2026
22 of 23 checks passed
@yaroslavborbat yaroslavborbat deleted the feat/dra branch February 18, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants