k8s device plugin that allows to expose devices used by YDB - for now, just partitions.
- Build an image for deployment
docker build -f udev-manager.Dockerfile --network=host -t <tag>
- Deploy it as daemonset using this config
domain: 'ydb.tech'
partitions:
- matcher: 'ydb_disk_(.*)'
- After start you'll see following resources allocatable in Kubelet (given your
node had partitions labeled
ydb_disk_(.*)
)
...
Allocatable:
...
ydb.tech/part-ssd_01: 1
ydb.tech/part-ssd_02: 1
ydb.tech/part-ssd_03: 1
ydb.tech/part-ssd_04: 1
ydb.tech/part-ssd_05: 1
ydb.tech/part-ssd_06: 1