-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathk8s-dnsperf-bench.yaml
51 lines (50 loc) · 1.04 KB
/
k8s-dnsperf-bench.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
---
apiVersion: v1
kind: ConfigMap
metadata:
name: dns-records-config
namespace: default
data:
records.txt: |-
www.google.com A
www.amazon.com A
kubernetes.default.svc.cluster.local A
kube-dns.kube-system.svc.cluster.local A
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: dnsperf
name: dnsperf
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: dnsperf
template:
metadata:
labels:
app: dnsperf
spec:
containers:
- name: dnsperf
image: guessi/dnsperf
imagePullPolicy: Always
env:
- name: DNSPERF_RECORDS_INPUT
value: "/opt/records.txt"
- name: EXTRA_ARGS
value: "-c 1 -T 1 -l 30 -t 5 -Q 100000"
volumeMounts:
- mountPath: /opt/
name: dns-records-volume
readOnly: true
dnsPolicy: ClusterFirst
restartPolicy: Always
volumes:
- configMap:
defaultMode: 420
name: dns-records-config
name: dns-records-volume