Skip to content

Containerized k3s CUDA support for k3d bootstrapping

License

Notifications You must be signed in to change notification settings

BalloonInc/k3d-gpu-support

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K3d GPU Support

This is a simple repository for preparing a k3s + nvidia/cuda base image that enables a K3d cluster to have access to your host machine's NVIDIA, CUDA-capable GPU(s).

Pre-Requisites

Access to GitHub and GitHub Container Registry. Please follow the GitHub Container Registry instructions.

Docker and all of its dependencies must be installed. To build and push a new version of the Docker image to the GHCR, Docker Buildx must be installed and configured correctly.

For the container GPU test, a NVIDIA GPU with CUDA cores and drivers must be present. Additionally, the CUDA toolkit and NVIDIA container toolkit must be installed.

For Kubernetes testing and pre-requisites, please see Kubernetes Deployment for details.

Usage

Building and Pushing the Image

Run the ./build.sh script to build and push a new image. Please see script for arguments and options.

Kubernetes Deployment

Follow the instructions in the zarf-package-k3d-airgap repository for bootstrapping a K3d cluster that can access your NVIDIA GPUs.

About

Containerized k3s CUDA support for k3d bootstrapping

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 80.0%
  • Shell 20.0%