Skip to content

thangtq710/gpu-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Deploy service used GPUs with Kubernetes

K8s cluster contain types of GPUs and none GPUs

alt

Requirements

  • Kubernetes worker nodes have to installed with NVIDIA drivers, nvidia-docker 2.0.

alt

  • nvidia-container-runtime must be configured as the default runtime for Docker. Change default docker runtime on /etc/docker/daemon.json.
{
    "default-runtime": "nvidia",
    "runtimes": {
        "nvidia": {
            "path": "/usr/bin/nvidia-container-runtime",
            "runtimeArgs": []
        }
    }
}

Deploy

  • Add label and taint on worker nodes GPU
kubectl label nodes <node-gpu> app=gpu
kubectl taint nodes <node-gpu> app=gpu:NoSchedule
  • Install nvidia-device-plugin on worker nodes GPU
kubectl apply -f https://raw.githubusercontent.com/thangtq710/gpu-k8s/master/files/nvidia-device-plugin.yml
  • Verification. Run deployment test
kubectl apply -f https://raw.githubusercontent.com/thangtq710/gpu-k8s/master/files/deployment-gpu-test.yml

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published