diff --git a/k8s/berserker.yml b/k8s/berserker.yml new file mode 100644 index 0000000..8d71048 --- /dev/null +++ b/k8s/berserker.yml @@ -0,0 +1,39 @@ +--- +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: berserker + labels: + app: berserker +spec: + selector: + matchLabels: + name: berserker + template: + metadata: + labels: + name: berserker + spec: + tolerations: + # these tolerations are to have the daemonset runnable on control plane nodes + # remove them if your control plane nodes should not run pods + - key: node-role.kubernetes.io/control-plane + operator: Exists + effect: NoSchedule + - key: node-role.kubernetes.io/master + operator: Exists + effect: NoSchedule + containers: + - name: berserker + image: quay.io/rhacs-eng/qa:berserker-1.0-45-g74de174922 + volumeMounts: + - name: config + mountPath: "/etc/berserker" + readOnly: true + volumes: + - name: config + configMap: + name: berserker-config + items: + - key: workload.toml + path: workload.toml diff --git a/k8s/endpoints-uniform.yml b/k8s/endpoints-uniform.yml new file mode 100644 index 0000000..699ec4b --- /dev/null +++ b/k8s/endpoints-uniform.yml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: berserker-config +data: + workload.toml: | + restart_interval = 10 + + [workload] + type = "endpoints" + distribution = "uniform" + upper = 100 + lower = 1 diff --git a/k8s/endpoints-zipf.yml b/k8s/endpoints-zipf.yml new file mode 100644 index 0000000..8aa6ce3 --- /dev/null +++ b/k8s/endpoints-zipf.yml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: berserker-config +data: + workload.toml: | + restart_interval = 10 + + [workload] + type = "endpoints" + distribution = "zipf" + n_ports = 200 + exponent = 1.4 diff --git a/k8s/processes-configmap.yml b/k8s/processes-configmap.yml new file mode 100644 index 0000000..0060641 --- /dev/null +++ b/k8s/processes-configmap.yml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: berserker-config +data: + workload.toml: | + restart_interval = 10 + + [workload] + type = "processes" + arrival_rate = 10.0 + departure_rate = 20.0 + random_process = true diff --git a/k8s/syscalls.yml b/k8s/syscalls.yml new file mode 100644 index 0000000..c9e4ea7 --- /dev/null +++ b/k8s/syscalls.yml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: berserker-config +data: + workload.toml: | + restart_interval = 10 + + [workload] + type = "syscalls" + arrival_rate = 10.0