intel-device-plugins-for-ku.../cmd/fpga_crihook
Ed Bartosh 9de82c819f fpga_crihook: fix annotation value
Annotation value has been changed in FPGA plugin code recently.
Updated fpga_crihook to use the same value.
2018-08-07 17:40:16 +03:00
..
testdata fpga_crihook: check if requested AF is programmed 2018-07-18 12:27:45 +03:00
main_test.go fpga_crihook: check if requested AF is programmed 2018-07-18 12:27:45 +03:00
main.go fpga_crihook: fix annotation value 2018-08-07 17:40:16 +03:00
README.md Edits to FPGA readme files for format and text flow. 2018-07-30 16:13:47 -04:00

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