From 6e01b789508c5ae3968a2ba153d2b9b444670d52 Mon Sep 17 00:00:00 2001 From: oshanQQ Date: Mon, 26 Dec 2022 16:03:04 +0900 Subject: [PATCH] A Kubernetes cluster was created with Kind customized for GPUs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit reference: - https://github.com/jacobtomlinson/kind/pull/1 - https://jacobtomlinson.dev/posts/2022/quick-hack-adding-gpu-support-to-kind/ Creating log: $ ../kind/bin/kind create cluster --config kind-gpu.yml Creating cluster "gpu-test" ... ✓ Ensuring node image (kindest/node:v1.23.1) đŸ–ŧ ✓ Preparing nodes đŸ“Ļ ✓ Writing configuration 📜 ✓ Starting control-plane 🕹ī¸ ✓ Installing CNI 🔌 ✓ Installing StorageClass 💾 Set kubectl context to "kind-gpu-test" You can now use your cluster with: kubectl cluster-info --context kind-gpu-test Have a nice day! 👋 --- kind-gpu.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 kind-gpu.yml diff --git a/kind-gpu.yml b/kind-gpu.yml new file mode 100644 index 0000000..2f1d0ec --- /dev/null +++ b/kind-gpu.yml @@ -0,0 +1,6 @@ +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha4 +name: gpu-test +nodes: + - role: control-plane + gpus: True