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