-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s-netperf-ds.yaml
48 lines (47 loc) · 1 KB
/
k8s-netperf-ds.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: netperf-server
labels:
app.kubernetes.io/name: netperf-server
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: netperf-server
template:
metadata:
labels:
app.kubernetes.io/name: netperf-server
spec:
containers:
- name: netperf-server
image: pete911/netperf:latest
imagePullPolicy: IfNotPresent
command: ["netserver", "-D"]
ports:
- containerPort: 12865
name: server
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: netperf-client
labels:
app.kubernetes.io/name: netperf-client
spec:
selector:
matchLabels:
app.kubernetes.io/name: netperf-client
template:
metadata:
labels:
app.kubernetes.io/name: netperf-client
spec:
containers:
- name: netperf-client
image: pete911/netperf:latest
imagePullPolicy: IfNotPresent
command:
- sleep
- "3600"