k8s-directx-device-plugin

module
v0.0.0-...-0f3db32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2019 License: Apache-2.0

README

DirectX device plugin for Kubernetes

Requirements

Build

GOOS=windows GOARCH=amd64 go build -mod vendor -o k8s-directx-device-plugin.exe cmd/k8s-device-plugin/main.go

Run

c:\k\k8s-directx-device-plugin.exe

Available environments variables :

  • PLUGIN_SOCK_DIR default value is c:\var\lib\kubelet\device-plugins\
  • DIRECTX_GPU_MATCH_NAME default value is nvidia

How to use

You can now request resources of type microsoft.com/directx in the container definition, the plugin will automatically add class/5B45201D-F2F2-4F3B-85BB-30FF1F953599 as a container device (which is the Docker for Windows way of enabling GPUs in containers).

...
spec:
  containers:
...
    resources:
      requests:
        microsoft.com/directx: "1"
...

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL