Using Onload Profiles - Using Onload Profiles - UG1656

Onload Operator for Kubernetes User Guide (UG1656)

Document ID
UG1656
Release Date
2024-04-26
Revision
1.0 English

If you want to run your onloaded application with a runtime profile, you can use a ConfigMap to set the environment variables in the pod(s). There is an example definition for the latency profile in the config/samples/profiles/ directory.

To deploy a ConfigMap named onload-latency-profile in the current namespace:

kubectl apply -k https://github.com/Xilinx-CNS/kubernetes-onload/config/samples/profiles?ref=v3.0

To use this in your pod, add the following to the container spec in your pod definition:

kind: Pod
...
spec:
  ...
  containers:
  - ...
    envFrom:
      - configMapRef:
          name: onload-latency-profile