Bring your own workload enables users to pass their own prepared container image with a set of commands.
Build your CR
apiVersion: ripsaw.cloudbulldozer.io/v1alpha1
kind: Benchmark
metadata:
name: byowl-benchmark
namespace: benchmark-operator
spec:
workload:
name: byowl
args:
image: "quay.io/me/myawesomebenchmarkimage"
clients: 1
commands: "echo Test"
You can add a node selector, taints/tolerations, and/or runtimeclass to the resulting Kubernetes resources like so:
spec:
workload:
name: byowl
args:
nodeselector:
foo: bar
tolerations:
- key: "taint-to-tolerate"
operator: "Exists"
effect: "NoSchedule"
runtimeclassname: "MyRuntimeClass"
This will launch the uperf container, and simply print the messages above into the log of the container.
You can add any section under specoptions
and containeroptions
in byowl
CRD, which will go under POD's spec
and containers
respectively as below: