Skip to content

Commit a3ff91e

Browse files
author
Martin Linkhorst
committed
Merge remote-tracking branch 'origin/dev' into eks
2 parents abe39ac + b9bbc10 commit a3ff91e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

cluster/manifests/01-coredns-local/daemonset-coredns.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ spec:
2525
prometheus.io/scrape: "true"
2626
prometheus.io/port: "9153"
2727
spec:
28+
terminationGracePeriodSeconds: 40
2829
initContainers:
2930
- name: ensure-apiserver
3031
{{- if eq .Cluster.Provider "zalando-eks" }}
@@ -78,7 +79,7 @@ spec:
7879
lifecycle:
7980
preStop:
8081
sleep:
81-
seconds: 25
82+
seconds: 35
8283
resources:
8384
requests:
8485
ephemeral-storage: 256Mi
@@ -158,6 +159,10 @@ spec:
158159
limits:
159160
cpu: {{.Cluster.ConfigItems.dns_dnsmasq_cpu}}
160161
memory: {{.Cluster.ConfigItems.dns_dnsmasq_mem}}
162+
lifecycle:
163+
preStop:
164+
sleep:
165+
seconds: 35
161166
- name: sidecar
162167
{{- if eq .Cluster.Provider "zalando-eks" }}
163168
image: 926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/teapot/k8s-dns-sidecar:1.17.4-master-15
@@ -191,6 +196,10 @@ spec:
191196
limits:
192197
cpu: {{.Cluster.ConfigItems.dns_dnsmasq_sidecar_cpu}}
193198
memory: {{.Cluster.ConfigItems.dns_dnsmasq_sidecar_mem}}
199+
lifecycle:
200+
preStop:
201+
sleep:
202+
seconds: 35
194203
{{ end }}
195204
- name: coredns
196205
{{- if eq .Cluster.Provider "zalando-eks" }}
@@ -238,6 +247,10 @@ spec:
238247
limits:
239248
cpu: {{.Cluster.ConfigItems.dns_coredns_cpu}}
240249
memory: {{.Cluster.ConfigItems.dns_coredns_mem}}
250+
lifecycle:
251+
preStop:
252+
sleep:
253+
seconds: 35
241254
priorityClassName: system-node-critical
242255
serviceAccountName: coredns
243256
hostNetwork: true

0 commit comments

Comments
 (0)