Skip to content

Instantly share code, notes, and snippets.

@sadysnaat
Last active September 24, 2020 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sadysnaat/4bf7e08685b2f9f46ef532af31fccf62 to your computer and use it in GitHub Desktop.
Save sadysnaat/4bf7e08685b2f9f46ef532af31fccf62 to your computer and use it in GitHub Desktop.
# Download the git repository
# This repository contains the code and manifest file
# for device driver installer and
# device plugin
git clone -b spectro-gpu https://github.com/spectrocloud/container-engine-accelerators/
cd nvidia-driver-installer/ubuntu/1804
# First we label the nodes with GPU,
# so that we can schedule device driver installer and device plugin on nodes.
kubectl label nodes <gpu enabled node name> spectrocloud.com/gpu-accelerator=""
# Once the nodes are labeled we can apply
# device driver installer manifest
kubectl create -f spectro-nvidia-installer.yaml
# device plugin manifest
kubectl create -f plugin.yaml
# and a sample cuda workload
kubectl create -f spectro-cuda-add.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment