forked from CARV-ICS-FORTH/frisbee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
2.advanced-placement.yml
43 lines (41 loc) · 1.2 KB
/
2.advanced-placement.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
38
39
40
41
42
43
---
apiVersion: frisbee.io/v1alpha1
kind: TestPlan
metadata:
name: advanced-placement
spec:
actions:
# Create an iperf server. However, because Frisbee placement abstractions are only supported
# at the level of a cluster, we must use the Cluster instead of the Service CRD.
- action: Cluster
name: server
cluster:
templateRef: iperf2.server
inputs:
- { "cpu": "2", memory: "4Gi" }
# placement:
# nodes: [jedi8.cluster.ics.forth.gr]
# Create a cluster of iperf clients
- action: Cluster
name: clients-a
depends: { running: [ server ] }
cluster:
templateRef: iperf2.client
instances: 20
inputs:
- { server: .cluster.server.one, seconds: "120" }
placement:
collocate: true
conflictsWith: [ server ]
# Create another cluster of iperf clients
- action: Cluster
name: clients-b
depends: { running: [ server ] }
cluster:
templateRef: iperf2.client
instances: 20
inputs:
- { server: .cluster.server.one, seconds: "240" }
placement:
collocate: true
conflictsWith: [ clients-a ]