fpga-operator

by InAccel

Helm chartv2.8.2App 2.1Apache-2.0Verified publisherOfficial

Simplifying FPGA management in Kubernetes

About this chart

InAccel FPGA Operator

Simplifying FPGA management in Kubernetes

Introduction

InAccel FPGA Operator is a cloud-native method to standardize and automate the deployment of all the necessary components for provisioning FPGA-enabled Kubernetes systems. FPGA Operator delivers a universal accelerator orchestration and monitoring layer, to automate scalability and lifecycle management of containerized FPGA applications on any Kubernetes cluster.

The FPGA operator allows cluster admins to manage their remote FPGA-powered servers the same way they manage CPU-based systems, but also regular users to target particular FPGA types and explicitly consume FPGA resources in their workloads. This makes it easy to bring up a fleet of remote systems and run accelerated applications without additional technical expertise on the ground.

Audience and Use-Cases

The FPGA Operator allows administrators of Kubernetes clusters to manage FPGA nodes just like CPU nodes in the cluster. Instead of provisioning a special OS image for FPGA nodes, administrators can rely on a standard OS image for both CPU and FPGA nodes and then rely on the FPGA Operator to provision the required software components for FPGAs.

Note that the FPGA Operator is specifically useful for scenarios where the Kubernetes cluster needs to scale quickly - for example provisioning additional FPGA nodes on the cloud and managing the lifecycle of the underlying software components.

Installing the Chart

To install the chart with the release name my-fpga-operator:

$ helm repo add inaccel https://setup.inaccel.com/helm
$ helm install my-fpga-operator inaccel/fpga-operator

These commands deploy InAccel FPGA Operator on the Kubernetes cluster in the default configuration.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-fpga-operator deployment:

$ helm uninstall my-fpga-operator

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

The following table lists the configurable parameters of the InAccel FPGA Operator chart and their default values.

ParameterDescriptionDefault
coral.httpsProxySets HTTPS_PROXY environment variable in the container.
coral.imageContainer image name.inaccel/coral
coral.logLevelSets LOG_LEVEL environment variable in the container.info
coral.portNumber of port to expose on the host.
coral.pullPolicyImage pull policy.Always
coral.resourcesCompute resources required by this container.
coral.tagRelease version.APP VERSION
daemon.debugArgument --debug to the entrypoint.false
daemon.imageContainer image name.inaccel/daemon
daemon.pullPolicyImage pull policy.
daemon.resourcesCompute resources required by this container.
daemon.tagRelease version.latest
driver.enabledIndicates whether driver should be enabled.true
driver.imageContainer image name.inaccel/driver
driver.pullPolicyImage pull policy.
driver.tagRelease version.latest
fpga-discovery.enabledDependency condition.true
kubeletDirectory path for managing kubelet files./var/lib/kubelet
licenseString value of the secret license key.
mkrt.imageContainer image name.inaccel/mkrt
mkrt.pullPolicyImage pull policy.
mkrt.tagRelease version.latest
monitor.imageContainer image name.inaccel/monitor
monitor.portNumber of port to expose on the host.
monitor.pullPolicyImage pull policy.Always
monitor.resourcesCompute resources required by this container.
monitor.tagRelease version.APP VERSION
reef.debugArgument --debug to the entrypoint.false
reef.imageContainer image name.inaccel/reef
reef.pullPolicyImage pull policy.
reef.resourcesCompute resources required by this container.
reef.tagRelease version.latest
replicasNumber of desired pods.
root.configHost-specific system configuration./etc/inaccel
root.stateVariable state information./var/lib/inaccel
tests.vadd.imageContainer image name.inaccel/vadd
tests.vadd.platformsFPGA platforms to test.
tests.vadd.pullPolicyImage pull policy.
tests.vadd.tagRelease version.latest

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install my-fpga-operator -f values.yaml inaccel/fpga-operator

Tip: You can use the default values.yaml

Deploy fpga-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has fpga-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartfpga-operator is pinned at v2.8.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply