Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.24 KB

byowl.md

File metadata and controls

54 lines (39 loc) · 1.24 KB

Bring your own workload (byowl)

Bring your own workload enables users to pass their own prepared container image with a set of commands.

Running byowl

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"

NodeSelector, Taint/Tolerations, and RuntimeClass

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.

A generic support:

You can add any section under specoptions and containeroptions in byowl CRD, which will go under POD's spec and containers respectively as below:

BYOWL_DOC