forked from CARV-ICS-FORTH/frisbee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
4.create-when.yml
37 lines (35 loc) · 991 Bytes
/
4.create-when.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
apiVersion: frisbee.io/v1alpha1
kind: TestPlan
metadata:
name: create-when
spec:
actions:
# Create an iperf server
- action: Service
name: server
service:
templateRef: iperf2.server
inputs:
- { "cpu": "2", memory: "4Gi" }
# Create an iperf client to generate background noise
- action: Service
name: noise
depends: { running: [ server ] }
service:
templateRef: iperf2.client
inputs:
- { server: .service.server.one, seconds: "800" }
# Create a cluster of iperf clients
- action: Cluster
name: clients
depends: { running: [ server ] }
cluster:
templateRef: iperf2.client
instances: 100
inputs:
- { server: .service.server.one, seconds: "160" }
- { server: .service.server.one, seconds: "60" }
schedule:
conditions:
metrics: 'avg() of query(wpFnYRwGk/2/bitrate, 5m, now) is above(100)'