fpga_crihook

command
v0.0.0-...-a3a9308 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

README

Build and set up Intel FPGA prestart CRI-O hook

Dependencies

You must install and set up the following FPGA plugin modules for correct operation:

Get source code:
$ mkdir -p $GOPATH/src/github.com/intel/
$ cd $GOPATH/src/github.com/intel/
$ git clone https://github.com/intel/intel-device-plugins-for-kubernetes.git
Build CRI-O hook:
$ cd $GOPATH/src/github.com/intel/intel-device-plugins-for-kubernetes
$ make fpga_crihook
Install CRI-O hook:
$ sudo cp cmd/fpga_crihook/fpga_crihook /usr/local/bin/
Configure CRI-O to run the hook:
$ sudo cat << EOF > /etc/containers/oci/hooks.d/prestart.json
{
    "hook" : "/usr/local/bin/fpga_crihook",
    "stage" : [ "prestart" ],
    "annotation": [ "intel.com/fpga-region" ]
}
EOF

$ sudo systemctl restart crio

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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