Skip to content

Commit 9bc1d1a

Browse files
Add initContainers option
1 parent 46af417 commit 9bc1d1a

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

charts/coredns/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: coredns
3-
version: 1.19.7
3+
version: 1.19.8
44
appVersion: 1.9.4
55
home: https://coredns.io
66
icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png

charts/coredns/templates/deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ spec:
8989
{{- if .Values.nodeSelector }}
9090
nodeSelector:
9191
{{ toYaml .Values.nodeSelector | indent 8 }}
92+
{{- end }}
93+
{{- if .Values.initContainers }}
94+
initContainers:
95+
{{- toYaml .Values.initContainers | nindent 8}}
9296
{{- end }}
9397
containers:
9498
- name: "coredns"

charts/coredns/values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ rollingUpdate:
4242
maxUnavailable: 1
4343
maxSurge: 25%
4444

45+
## Optionally, add init containers to run before the main CoreDNS container starts up.
46+
# initContainers:
47+
# - name: helloworld
48+
# image: "busybox"
49+
# command: ["bash", "-c", "Hello world"]
50+
4551
# Under heavy load it takes more that standard time to remove Pod endpoint from a cluster.
4652
# This will delay termination of our pod by `preStopSleep`. To make sure kube-proxy has
4753
# enough time to catch up.

0 commit comments

Comments
 (0)