Giter Site home page Giter Site logo

vfio-device-plugin's Introduction

Kubernetes VFIO Device Plugin

This plugin is used to present VFIO devices as allocatable resources in Kubernetes. While the plugin was written specifically to allow GPU passthrough for Kata Containers, in practice the plugin is completely generic and it can handle any device controlled by the vfio-pci driver on the host machine. The configuration of devices via the vfio-pci driver must be done manually before starting the plugin.

Credits

This plugin is a heavily modified version of the smarter-device-plugin by the ARM Research group. Especially the gRPC part of the code was largely adopted vanilla from this project.

Configuration

In the manifest directory there is a YAML file for starting the plugin as a container in Kubernetes. This manifest also contains a configration file for the plugin, where you can specify what VFIO devices you want to register as a resource.

- resourceName: nvidia/a100
  vendorId: 10de
  deviceId: ['20f1']
- resourceName: nvidia/v100
  vendorId: 10de
  deviceId: ['1db5']

The resourceName is the name of the resource in Kubernetes and it must be of the format xxxx/yyyy. The next two variables are the PCI IDs of the devices you want to register as part of this resource. You can only specify a single vendor ID, but multiple device IDs.

vfio-device-plugin's People

Contributors

mrlhansen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.