Commit 8db72b7
committed
deployments: Add Helm chart support for CDI mode
Enhance Helm chart to support both default and CDI operating modes.
Changes:
- values.yaml: Add CDI configuration section
- cdi.enabled: Enable CDI spec mode (default: false)
- cdi.configMapName: Reference external CDI spec ConfigMap
- cdi.inlineSpec: Embed CDI spec in Helm values
- cdi.architectureOverride: Manual architecture selection
- mockDriver.architecture: Default mode architecture (dgxa100)
- mock-driver-daemonset.yaml: Wire CDI configuration
- Mount CDI spec ConfigMap when enabled
- Set environment variables (MOCK_GPU_ARCH, MOCK_NVML_NUM_DEVICES)
- Use entrypoint.sh instead of direct gpu-mockctl call
- Pass CDI_SPEC_PATH when CDI mode enabled
- cdi-configmap.yaml: New template for inline CDI specs
- Creates ConfigMap from Helm values when cdi.inlineSpec set
Deployment scenarios:
1. Default mode (zero-config):
helm install gpu-mock ./helm/gpu-mock
→ 8 A100 GPUs, no configuration needed
2. CDI from ConfigMap:
kubectl create configmap my-spec --from-file=spec.yaml=my-cdi.yaml
helm install gpu-mock ./helm/gpu-mock --set cdi.enabled=true \
--set cdi.configMapName=my-spec
→ Custom GPU topology from CDI spec
3. CDI inline:
helm install gpu-mock ./helm/gpu-mock --set cdi.enabled=true \
--set-file cdi.inlineSpec=my-cdi.yaml
→ CDI spec embedded in Helm release
This provides flexibility while maintaining backward compatibility
with existing zero-config deployments.1 parent cfa5aef commit 8db72b7
File tree
3 files changed
+65
-3
lines changed- deployments/devel/gpu-mock/helm/gpu-mock
- templates
3 files changed
+65
-3
lines changedLines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
| |||
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
58 | 80 | | |
59 | 81 | | |
60 | 82 | | |
61 | 83 | | |
62 | 84 | | |
63 | 85 | | |
64 | 86 | | |
65 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
66 | 93 | | |
| 94 | + | |
67 | 95 | | |
68 | 96 | | |
69 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
100 | 121 | | |
101 | 122 | | |
102 | 123 | | |
| |||
0 commit comments