@@ -45,9 +45,15 @@ From here we will build the image for the example resource driver:
45
45
46
46
And create a ` kind ` cluster to run it in:
47
47
``` bash
48
- ./demo/create-cluster.sh
48
+ KUBE_GIT_VERSION=v1.30.0 BUILD_KIND_IMAGE=true KIND_K8S_TAG=v1.31.0-rc.1 ./demo/create-cluster.sh
49
49
```
50
50
51
+ ** Note** : The environment variables in the command above allow us to build a
52
+ local node image against Kubernetes v1.31.0-rc.1. Once ` kind ` releases a node
53
+ image for v1.31 these extra environment variables will no longer be needed. If
54
+ you only plan on running tests for Kubernetes 1.30 then you can just use the
55
+ latest ` kind ` image for v1.30 and omit these extra environment variables.
56
+
51
57
Once the cluster has been created successfully, double check everything is
52
58
coming up as expected:
53
59
``` console
@@ -79,7 +85,6 @@ Double check the driver components have come up successfully:
79
85
``` console
80
86
$ kubectl get pod -n dra-example-driver
81
87
NAME READY STATUS RESTARTS AGE
82
- dra-example-driver-controller-7555d488db-nbd52 1/1 Running 0 1m
83
88
dra-example-driver-kubeletplugin-qwmbl 1/1 Running 0 1m
84
89
```
85
90
@@ -91,18 +96,18 @@ items:
91
96
- apiVersion: resource.k8s.io/v1alpha3
92
97
kind: ResourceSlice
93
98
metadata:
94
- creationTimestamp: "2024-07-13T01:10:56Z "
99
+ creationTimestamp: "2024-07-16T13:00:06Z "
95
100
generateName: dra-example-driver-cluster-worker-gpu.example.com-
96
101
generation: 1
97
- name: dra-example-driver-cluster-worker-gpu.example.com-vkx6z
102
+ name: dra-example-driver-cluster-worker-gpu.example.com-xhsqf
98
103
ownerReferences:
99
104
- apiVersion: v1
100
105
controller: true
101
106
kind: Node
102
107
name: dra-example-driver-cluster-worker
103
- uid: fe806a5b-17a3-42d6-a9bc-fc8ad7609a1a
104
- resourceVersion: "523 "
105
- uid: 7a61895f-f5d6-4679-a68c-7ae3c148c9cb
108
+ uid: 8a18f216-bd77-426a-86b1-a989bdacc135
109
+ resourceVersion: "854 "
110
+ uid: ea955e01-eaf0-45ed-8a36-1c56e4b8bced
106
111
spec:
107
112
driver: gpu.example.com
108
113
nodeName: dra-example-driver-cluster-worker
@@ -113,44 +118,108 @@ items:
113
118
devices:
114
119
- basic:
115
120
attributes:
121
+ driverVersion:
122
+ version: 1.0.0
123
+ index:
124
+ int: 0
116
125
model:
117
126
string: LATEST-GPU-MODEL
118
- name: gpu-e7b42cb1-4fd8-91b2-bc77-352a0c1f5747
127
+ uuid:
128
+ string: gpu-18db0e85-99e9-c746-8531-ffeb86328b39
129
+ capacity:
130
+ memory: 80Gi
131
+ name: gpu-18db0e85-99e9-c746-8531-ffeb86328b39
119
132
- basic:
120
133
attributes:
134
+ driverVersion:
135
+ version: 1.0.0
136
+ index:
137
+ int: 1
121
138
model:
122
139
string: LATEST-GPU-MODEL
123
- name: gpu-f11773a1-5bfb-e48b-3d98-1beb5baaf08e
140
+ uuid:
141
+ string: gpu-93d37703-997c-c46f-a531-755e3e0dc2ac
142
+ capacity:
143
+ memory: 80Gi
144
+ name: gpu-93d37703-997c-c46f-a531-755e3e0dc2ac
124
145
- basic:
125
146
attributes:
147
+ driverVersion:
148
+ version: 1.0.0
149
+ index:
150
+ int: 2
126
151
model:
127
152
string: LATEST-GPU-MODEL
128
- name: gpu-0159f35e-99ee-b2b5-74f1-9d18df3f22ac
153
+ uuid:
154
+ string: gpu-ee3e4b55-fcda-44b8-0605-64b7a9967744
155
+ capacity:
156
+ memory: 80Gi
157
+ name: gpu-ee3e4b55-fcda-44b8-0605-64b7a9967744
129
158
- basic:
130
159
attributes:
160
+ driverVersion:
161
+ version: 1.0.0
162
+ index:
163
+ int: 3
131
164
model:
132
165
string: LATEST-GPU-MODEL
133
- name: gpu-657bd2e7-f5c2-a7f2-fbaa-0d1cdc32f81b
166
+ uuid:
167
+ string: gpu-9ede7e32-5825-a11b-fa3d-bab6d47e0243
168
+ capacity:
169
+ memory: 80Gi
170
+ name: gpu-9ede7e32-5825-a11b-fa3d-bab6d47e0243
134
171
- basic:
135
172
attributes:
173
+ driverVersion:
174
+ version: 1.0.0
175
+ index:
176
+ int: 4
136
177
model:
137
178
string: LATEST-GPU-MODEL
138
- name: gpu-18db0e85-99e9-c746-8531-ffeb86328b39
179
+ uuid:
180
+ string: gpu-e7b42cb1-4fd8-91b2-bc77-352a0c1f5747
181
+ capacity:
182
+ memory: 80Gi
183
+ name: gpu-e7b42cb1-4fd8-91b2-bc77-352a0c1f5747
139
184
- basic:
140
185
attributes:
186
+ driverVersion:
187
+ version: 1.0.0
188
+ index:
189
+ int: 5
141
190
model:
142
191
string: LATEST-GPU-MODEL
143
- name: gpu-93d37703-997c-c46f-a531-755e3e0dc2ac
192
+ uuid:
193
+ string: gpu-f11773a1-5bfb-e48b-3d98-1beb5baaf08e
194
+ capacity:
195
+ memory: 80Gi
196
+ name: gpu-f11773a1-5bfb-e48b-3d98-1beb5baaf08e
144
197
- basic:
145
198
attributes:
199
+ driverVersion:
200
+ version: 1.0.0
201
+ index:
202
+ int: 6
146
203
model:
147
204
string: LATEST-GPU-MODEL
148
- name: gpu-ee3e4b55-fcda-44b8-0605-64b7a9967744
205
+ uuid:
206
+ string: gpu-0159f35e-99ee-b2b5-74f1-9d18df3f22ac
207
+ capacity:
208
+ memory: 80Gi
209
+ name: gpu-0159f35e-99ee-b2b5-74f1-9d18df3f22ac
149
210
- basic:
150
211
attributes:
212
+ driverVersion:
213
+ version: 1.0.0
214
+ index:
215
+ int: 7
151
216
model:
152
217
string: LATEST-GPU-MODEL
153
- name: gpu-9ede7e32-5825-a11b-fa3d-bab6d47e0243
218
+ uuid:
219
+ string: gpu-657bd2e7-f5c2-a7f2-fbaa-0d1cdc32f81b
220
+ capacity:
221
+ memory: 80Gi
222
+ name: gpu-657bd2e7-f5c2-a7f2-fbaa-0d1cdc32f81b
154
223
kind: List
155
224
metadata:
156
225
resourceVersion: ""
0 commit comments