Collection of Intel device plugins for Kubernetes
Go to file
Dmitry Rozhkov 6c2eacfae5 webhook: remove mode of operation
fpga: make AFU resource name 63 char long

webhook: drop mode from README

webhook: extend mappings description

webhook: tighten CRD definitions

webhook: drop mapping to non-existing afuId

explicitly state mappings names can be in any format

use consistent terminology across fpga webhook and plugin
2020-04-22 13:55:43 +03:00
.github repo: drop .travis.yaml and update CODEOWNERS 2020-04-15 14:11:39 +03:00
build move to k8s v1.18.2 release 2020-04-17 12:40:18 +03:00
cmd webhook: remove mode of operation 2020-04-22 13:55:43 +03:00
demo ubuntu-demo-openvino: use apt source instead of tar ball downloading 2020-04-17 14:10:48 +08:00
deployments webhook: remove mode of operation 2020-04-22 13:55:43 +03:00
pkg webhook: remove mode of operation 2020-04-22 13:55:43 +03:00
scripts webhook: remove mode of operation 2020-04-22 13:55:43 +03:00
test/e2e webhook: remove mode of operation 2020-04-22 13:55:43 +03:00
.gitignore bitstream: increased test coverage 2020-03-20 11:18:05 +02:00
.intel-logo.png Reworked README.md 2018-05-25 10:31:53 +03:00
DEVEL.md move to k8s v1.18.2 release 2020-04-17 12:40:18 +03:00
go.mod move to k8s v1.18.2 release 2020-04-17 12:40:18 +03:00
go.sum move to k8s v1.18.2 release 2020-04-17 12:40:18 +03:00
Jenkinsfile ci: update tool versions 2020-02-10 19:31:25 +02:00
LICENSE Initial public code release 2018-05-18 18:30:54 +03:00
Makefile build: pass extra builder arguments from users 2020-03-16 20:19:16 +02:00
README.md README: switch to Github Actions badge 2020-03-16 20:20:29 +02:00

Intel Device Plugins for Kubernetes Device Plugins for Kubernetes

Build Status Go Report Card GoDoc

Table of Contents

About

This repository contains a framework for developing plugins for the Kubernetes device plugins framework, along with a number of device plugin implementations utilising that framework.

Prerequisites

Prerequisites for building and running these device plugins include:

Plugins

The below sections detail existing plugins developed using the framework.

GPU device plugin

The GPU device plugin supports Intel GVT-d device passthrough and acceleration using GPUs of the following hardware families:

  • Integrated GPUs within Intel Core processors
  • Intel Xeon processors
  • Intel Visual Compute Accelerator (Intel VCA)

The demo subdirectory contains both a GPU plugin demo video as well as code for an OpenCL FFT demo.

FPGA device plugin

The FPGA device plugin supports FPGA passthrough for the following hardware:

  • Intel Arria 10
  • Intel Stratix 10

The FPGA plugin comes as three parts.

Refer to each individual sub-components documentation for more details. Brief overviews of the sub-components are below.

The demo subdirectory contains a video showing deployment and use of the FPGA plugin. Sources relating to the demo can be found in the opae-nlb-demo subdirectory.

device plugin

The FPGA device plugin is responsible for discovering and reporting FPGA devices to kubelet.

admission controller

The FPGA admission controller webhook is responsible for performing mapping from user-friendly function IDs to the Interface ID and Bitstream ID that are required for FPGA programming. It also implements access control by namespacing FPGA configuration information.

CRI-O prestart hook

The FPGA prestart CRI-O hook performs discovery of the requested FPGA function bitstream and programs FPGA devices based on the environment variables in the workload description.

QAT device plugin

The QAT plugin supports device plugin for Intel QAT adapters, and includes code showing deployment via DPDK.

The demo subdirectory includes details of both a QAT DPDK demo and a QAT OpenSSL demo. Source for the OpenSSL demo can be found in the relevant subdirectory.

Details for integrating the QAT device plugin into Kata Containers can be found in the Kata Containers documentation repository.

VPU device plugin

The VPU device plugin supports Intel VCAC-A card (https://www.intel.com/content/dam/www/public/us/en/documents/datasheets/media-analytics-vcac-a-accelerator-card-by-celestica-datasheet.pdf) the card has:

  • 1 Intel Core i3-7100U processor
  • 12 MyriadX VPUs
  • 8GB DDR4 memory

The demo subdirectory includes details of a OpenVINO deployment and use of the VPU plugin. Sources can be found in openvino-demo

Demos

The demo subdirectory contains a number of demonstrations for a variety of the available plugins.

Developers

For information on how to develop a new plugin using the framework, see the Developers Guide and the code in the device plugins pkg directory.

Running E2E tests

Currently the E2E tests require having a Kubernetes cluster already configured on the nodes with the hardware required by the device plugins. Also all the container images with the executables under test must be available in the cluster. Given these two conditions are satisfied one can run the tests with

$ go test -v ./test/e2e/...

In case you want to run only certain tests, e.g. QAT ones, then run

$ go test -v ./test/e2e/... -args -ginkgo.focus "QAT"

If you need to specify paths to your custom kubeconfig containing embedded authentication info then add the -kubeconfig argument:

$ go test -v ./test/e2e/... -args -kubeconfig /path/to/kubeconfig

The full list of available options can be obtained with

$ go test ./test/e2e/... -args -help

Also it is possible to run the tests which don't depend on hardware without a pre-configured Kubernetes cluster. Just make sure you have Kind installed on your host and run

$ make test-with-kind

Supported Kubernetes versions

Releases are made under the github releases area. Supported releases and matching Kubernetes versions are listed below:

Branch Kubernetes branch/version
release-0.17 Kubernetes 1.17 branch v1.17.x
release-0.15 Kubernetes 1.15 branch v1.15.x
release-0.11 Kubernetes 1.11 branch v1.11.x

A related Intel SRIOV network device plugin can be found in this repository