Last active
February 18, 2022 00:19
Install Kind's Kubeflow prerequisites with nvidia container runtime GPU passthrough
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt update && sudo apt upgrade \ | |
&& sudo ubuntu-drivers install \ | |
&& sudo apt install curl -y \ | |
&& curl https://get.docker.com | bash \ | |
&& sudo usermod -aG docker $USER \ | |
&& distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \ | |
&& curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - \ | |
&& curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list \ | |
&& sudo apt-get update \ | |
&& sudo apt-get install -y nvidia-docker2 \ | |
&& sudo systemctl restart docker \ | |
&& sudo curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \ | |
&& sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl \ | |
&& sudo curl get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash \ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment