-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy-isar-cpu.yaml
executable file
·91 lines (91 loc) · 2.13 KB
/
deploy-isar-cpu.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
kind: Deployment
apiVersion: apps/v1
metadata:
name: stress-cpu-server
labels:
app: stress-cpu-server
spec:
replicas: 2
strategy:
type: Recreate
selector:
matchLabels:
app: stress-cpu-server
template:
metadata:
creationTimestamp: null
labels:
app: stress-cpu-server
spec:
containers:
- name: stress-cpu
image: 'quay.io/dfroehli/tools-stress:latest'
env:
- name: STRESS_ARGS
value: '--cpu 8'
resources:
requests:
cpu: 8
memory: 1024Mi
limits:
cpu: 8
memory: 1024Mi
imagePullPolicy: IfNotPresent
nodeSelector:
iperf-deploy: 'true'
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- iperf-server
topologyKey: "kubernetes.io/hostname"
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: stress-cpu-client
labels:
app: stress-cpu-client
spec:
replicas: 3
strategy:
type: Recreate
selector:
matchLabels:
app: stress-cpu-client
template:
metadata:
creationTimestamp: null
labels:
app: stress-cpu-client
spec:
containers:
- name: stress-cpu
image: 'quay.io/dfroehli/tools-stress:latest'
env:
- name: STRESS_ARGS
value: '--cpu 2'
resources:
requests:
cpu: 2
memory: 1024Mi
limits:
cpu: 2
memory: 1024Mi
imagePullPolicy: IfNotPresent
# nodeSelector:
# kubernetes.io/hostname: inf44
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- iperf-client
topologyKey: "kubernetes.io/hostname"