Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Commit 91eafb0

Browse files
authored
WIP initial GPU SUpport (#7)
* initial GPU SUpport * nvidia
1 parent 91c2e72 commit 91eafb0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

install

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,16 @@ while [ : ]
4242
}
4343

4444

45-
46-
curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644
45+
if [ $1 = "--gpu" ]
46+
then
47+
info "Install Pipelines with GPU support, docker as runtime"
48+
curl -sfL https://get.k3s.io | sh -s - --docker --kubelet-arg="feature-gates=DevicePlugins=true" --write-kubeconfig-mode 644
49+
#### GPU Support
50+
kubectl create -f https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.7.0/nvidia-device-plugin.yml
51+
else
52+
info "Install Pipelines without GPU support, containerd as runtime"
53+
curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644
54+
fi
4755

4856
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
4957

@@ -72,6 +80,7 @@ for i in "${waiting_pod_array[@]}"; do
7280
done
7381

7482

83+
7584
info "Kubeflow pipelines ready!!"
7685

7786
info "Defining the ingress"

0 commit comments

Comments
 (0)