/
dnsperf.yaml
62 lines (62 loc) · 1.4 KB
/
dnsperf.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
---
apiVersion: v1
kind: ConfigMap
metadata:
name: dns-records-config
namespace: coredns-test
data:
records.txt: |-
<REPLACE WITH RESULTS FROM THE KUBERNETES SCRIPT>
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: dnsperf-deployment
namespace: coredns-test
labels:
app: dnsperf
spec:
replicas: 1
selector:
matchLabels:
app: dnsperf
template:
metadata:
labels:
app: dnsperf
spec:
nodeSelector:
coredns-test: dnsperf
containers:
- env:
- name: MAX_TEST_SECONDS
value: "600"
- name: MAX_QPS
value: "1000000"
# please replace the ipaddr with the following command result output
# $ kubectl get -n kube-system svc kube-dns -o go-template='{{.spec.clusterIP}}{{"\n"}}'
- name: DNS_SERVER_ADDR
value: "<TARGET DNS SERVER>"
name: dnsperf
image: guessi/dnsperf:alpine
imagePullPolicy: Always
volumeMounts:
- name: dns-records-volume
mountPath: /opt/
readOnly: true
resources:
limits:
memory: 512Mi
cpu: 1
requests:
cpu: 1
memory: 512Mi
volumes:
- name: dns-records-volume
configMap:
name: dns-records-config
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 25%