Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions k8s/berserker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
apiVersion: apps/v1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file names could be improved. They could be either prefixed or suffixed with the kind. E.g berserker-daemonset.yml.

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
13 changes: 13 additions & 0 deletions k8s/endpoints-uniform.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions k8s/endpoints-zipf.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions k8s/processes-configmap.yml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions k8s/syscalls.yml
Original file line number Diff line number Diff line change
@@ -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