-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-isar.network.yaml
More file actions
111 lines (109 loc) · 2.3 KB
/
deploy-isar.network.yaml
File metadata and controls
111 lines (109 loc) · 2.3 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
kind: Deployment
apiVersion: apps/v1
metadata:
annotations:
name: iperf-server
labels:
app: iperf-server
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: iperf-server
template:
metadata:
labels:
app: iperf-server
spec:
containers:
- name: iperf-server
image: 'quay.io/dfroehli/tools-iperf:latest'
resources:
requests:
cpu: 4
memory: 128Mi
limits:
cpu: 4
memory: 128Mi
ports:
- containerPort: 5201
protocol: TCP
env:
- name: IPERF_OPT
value: '--server'
nodeSelector:
kubernetes.io/hostname: inf7
securityContext: {}
---
kind: Service
apiVersion: v1
metadata:
annotations:
name: iperf-server
labels:
app: iperf-server
spec:
ports:
- name: 5201-tcp
protocol: TCP
port: 5201
targetPort: 5201
- name: 5201-udp
protocol: UDP
port: 5201
targetPort: 5201
selector:
app: iperf-server
type: ClusterIP
sessionAffinity: None
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: iperf-client
labels:
app: iperf-client
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: iperf-client
template:
metadata:
creationTimestamp: null
labels:
app: iperf-client
spec:
# Explicit node:
nodeSelector:
kubernetes.io/hostname: inf44
# Co-Located with sender:
# affinity:
# podAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# - labelSelector:
# matchExpressions:
# - key: app
# operator: In
# values:
# - iperf-server
# topologyKey: "kubernetes.io/hostname"
containers:
- name: iperf-client
image: 'quay.io/dfroehli/tools-iperf:latest'
env:
- name: IPERF_OPT
value: ' --client iperf-server --time 60 --parallel 4'
resources: {}
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 4
memory: 128Mi
limits:
cpu: 4
memory: 128Mi