You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scripts to create and delete a kind cluster for the DRA demo.
4
+
5
+
| File | Purpose |
6
+
| --- | --- |
7
+
|`create-cluster.sh`| Create the cluster (default `gpu` profile demo) |
8
+
|`delete-cluster.sh`| Delete the cluster |
9
+
|`kind-cluster-config-vfio.yaml`| kind config used when `VFIO_GPU=true` (PCI sysfs + `/dev/vfio` mounts) |
10
+
|`vfio-gpu-test.yaml`| ResourceClaimTemplate for the `vfio-gpu` profile |
11
+
12
+
Shared vfio helpers live in [`demo/scripts/vfio-kind.sh`](../../scripts/vfio-kind.sh).
13
+
14
+
## Default (mock GPU profile)
15
+
16
+
```bash
17
+
./demo/build-driver.sh
18
+
./demo/clusters/kind/create-cluster.sh
19
+
helm upgrade -i \
20
+
--create-namespace \
21
+
--namespace dra-example-driver \
22
+
dra-example-driver \
23
+
deployments/helm/dra-example-driver
24
+
```
25
+
26
+
Uses the CDI-enabled kind node image built by `demo/scripts/build-kind-image.sh` and
27
+
`demo/scripts/kind-cluster-config.yaml`.
28
+
29
+
## vfio-gpu profile (`VFIO_GPU=true`)
30
+
31
+
**Off by default.** Set `VFIO_GPU=true` when creating the cluster to bind-mount host
32
+
PCI sysfs and `/dev/vfio` into kind nodes. This is required for the `vfio-gpu` driver
33
+
profile but does **not** install the driver — you still set `deviceProfile=vfio-gpu` in
34
+
Helm separately.
35
+
36
+
**Linux host only.** The host must already have devices bound to `vfio-pci` before
37
+
cluster creation. The script verifies bindings and exits if none are found.
38
+
39
+
### Host setup
40
+
41
+
Synthetic devices for testing come from [kubevirt's kind-1.35-vfio-gpu provider](https://github.com/kubevirt/kubevirt/tree/main/kubevirtci/cluster-up/cluster/kind-1.35-vfio-gpu):
42
+
43
+
It has not merged yet - https://github.com/kubevirt/kubevirtci/pull/1726
44
+
45
+
```bash
46
+
sudo bash setup-host-vfio-pci.sh
47
+
ls /sys/bus/pci/drivers/vfio-pci/ # expect BDF entries
48
+
```
49
+
50
+
Real hardware bound to vfio-pci works equally well.
0 commit comments