-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.yaml
More file actions
44 lines (44 loc) · 1.07 KB
/
Copy pathdeploy.yaml
File metadata and controls
44 lines (44 loc) · 1.07 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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: dns-benchmark
name: dns-benchmark
spec:
progressDeadlineSeconds: 600
replicas: 1
selector:
matchLabels:
app: dns-benchmark
template:
metadata:
labels:
app: dns-benchmark
spec:
containers:
- image: yudiandreanp/dnsbenchmark:0.1
imagePullPolicy: IfNotPresent
name: dns-benchmark
command:
- /dnsbenchmark
args:
- "kube-dns.kube-system.svc.cluster.local:53"
- "50"
- "kubernetes.default"
resources:
requests:
cpu: "50m"
restartPolicy: Always
terminationGracePeriodSeconds: 60
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- dns-benchmark
topologyKey: topology.kubernetes.io/hostname