Skip to content

Commit

Permalink
Include instructions to temporarily create cluster from release-1.31
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Klues <[email protected]>
  • Loading branch information
klueska committed Aug 6, 2024
1 parent 38f6286 commit ed9d06d
Showing 1 changed file with 84 additions and 15 deletions.
99 changes: 84 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,15 @@ From here we will build the image for the example resource driver:

And create a `kind` cluster to run it in:
```bash
./demo/create-cluster.sh
KUBE_GIT_VERSION=v1.30.0 BUILD_KIND_IMAGE=true KIND_K8S_TAG=v1.31.0-rc.1 ./demo/create-cluster.sh
```

**Note**: The environment variables in the command above allow us to build a
local node image against Kubernetes v1.31.0-rc.1. Once `kind` releases a node
image for v1.31 these extra environment variables will no longer be needed. If
you only plan on running tests for Kubernetes 1.30 then you can just use the
latest `kind` image for v1.30 and omit these extra environment variables.

Once the cluster has been created successfully, double check everything is
coming up as expected:
```console
Expand Down Expand Up @@ -80,7 +86,6 @@ Double check the driver components have come up successfully:
```console
$ kubectl get pod -n dra-example-driver
NAME READY STATUS RESTARTS AGE
dra-example-driver-controller-7555d488db-nbd52 1/1 Running 0 1m
dra-example-driver-kubeletplugin-qwmbl 1/1 Running 0 1m
```

Expand All @@ -92,18 +97,18 @@ items:
- apiVersion: resource.k8s.io/v1alpha3
kind: ResourceSlice
metadata:
creationTimestamp: "2024-07-13T01:10:56Z"
creationTimestamp: "2024-07-16T13:00:06Z"
generateName: dra-example-driver-cluster-worker-gpu.example.com-
generation: 1
name: dra-example-driver-cluster-worker-gpu.example.com-vkx6z
name: dra-example-driver-cluster-worker-gpu.example.com-xhsqf
ownerReferences:
- apiVersion: v1
controller: true
kind: Node
name: dra-example-driver-cluster-worker
uid: fe806a5b-17a3-42d6-a9bc-fc8ad7609a1a
resourceVersion: "523"
uid: 7a61895f-f5d6-4679-a68c-7ae3c148c9cb
uid: 8a18f216-bd77-426a-86b1-a989bdacc135
resourceVersion: "854"
uid: ea955e01-eaf0-45ed-8a36-1c56e4b8bced
spec:
driver: gpu.example.com
nodeName: dra-example-driver-cluster-worker
Expand All @@ -114,44 +119,108 @@ items:
devices:
- basic:
attributes:
driverVersion:
version: 1.0.0
index:
int: 0
model:
string: LATEST-GPU-MODEL
name: gpu-e7b42cb1-4fd8-91b2-bc77-352a0c1f5747
uuid:
string: gpu-18db0e85-99e9-c746-8531-ffeb86328b39
capacity:
memory: 80Gi
name: gpu-18db0e85-99e9-c746-8531-ffeb86328b39
- basic:
attributes:
driverVersion:
version: 1.0.0
index:
int: 1
model:
string: LATEST-GPU-MODEL
name: gpu-f11773a1-5bfb-e48b-3d98-1beb5baaf08e
uuid:
string: gpu-93d37703-997c-c46f-a531-755e3e0dc2ac
capacity:
memory: 80Gi
name: gpu-93d37703-997c-c46f-a531-755e3e0dc2ac
- basic:
attributes:
driverVersion:
version: 1.0.0
index:
int: 2
model:
string: LATEST-GPU-MODEL
name: gpu-0159f35e-99ee-b2b5-74f1-9d18df3f22ac
uuid:
string: gpu-ee3e4b55-fcda-44b8-0605-64b7a9967744
capacity:
memory: 80Gi
name: gpu-ee3e4b55-fcda-44b8-0605-64b7a9967744
- basic:
attributes:
driverVersion:
version: 1.0.0
index:
int: 3
model:
string: LATEST-GPU-MODEL
name: gpu-657bd2e7-f5c2-a7f2-fbaa-0d1cdc32f81b
uuid:
string: gpu-9ede7e32-5825-a11b-fa3d-bab6d47e0243
capacity:
memory: 80Gi
name: gpu-9ede7e32-5825-a11b-fa3d-bab6d47e0243
- basic:
attributes:
driverVersion:
version: 1.0.0
index:
int: 4
model:
string: LATEST-GPU-MODEL
name: gpu-18db0e85-99e9-c746-8531-ffeb86328b39
uuid:
string: gpu-e7b42cb1-4fd8-91b2-bc77-352a0c1f5747
capacity:
memory: 80Gi
name: gpu-e7b42cb1-4fd8-91b2-bc77-352a0c1f5747
- basic:
attributes:
driverVersion:
version: 1.0.0
index:
int: 5
model:
string: LATEST-GPU-MODEL
name: gpu-93d37703-997c-c46f-a531-755e3e0dc2ac
uuid:
string: gpu-f11773a1-5bfb-e48b-3d98-1beb5baaf08e
capacity:
memory: 80Gi
name: gpu-f11773a1-5bfb-e48b-3d98-1beb5baaf08e
- basic:
attributes:
driverVersion:
version: 1.0.0
index:
int: 6
model:
string: LATEST-GPU-MODEL
name: gpu-ee3e4b55-fcda-44b8-0605-64b7a9967744
uuid:
string: gpu-0159f35e-99ee-b2b5-74f1-9d18df3f22ac
capacity:
memory: 80Gi
name: gpu-0159f35e-99ee-b2b5-74f1-9d18df3f22ac
- basic:
attributes:
driverVersion:
version: 1.0.0
index:
int: 7
model:
string: LATEST-GPU-MODEL
name: gpu-9ede7e32-5825-a11b-fa3d-bab6d47e0243
uuid:
string: gpu-657bd2e7-f5c2-a7f2-fbaa-0d1cdc32f81b
capacity:
memory: 80Gi
name: gpu-657bd2e7-f5c2-a7f2-fbaa-0d1cdc32f81b
kind: List
metadata:
resourceVersion: ""
Expand Down

0 comments on commit ed9d06d

Please sign in to comment.