Skip to content

Commit

Permalink
Add initContainers option
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-bauer committed Dec 16, 2022
1 parent 46af417 commit 9bc1d1a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/coredns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: coredns
version: 1.19.7
version: 1.19.8
appVersion: 1.9.4
home: https://coredns.io
icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png
Expand Down
4 changes: 4 additions & 0 deletions charts/coredns/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.initContainers }}
initContainers:
{{- toYaml .Values.initContainers | nindent 8}}
{{- end }}
containers:
- name: "coredns"
Expand Down
6 changes: 6 additions & 0 deletions charts/coredns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ rollingUpdate:
maxUnavailable: 1
maxSurge: 25%

## Optionally, add init containers to run before the main CoreDNS container starts up.
# initContainers:
# - name: helloworld
# image: "busybox"
# command: ["bash", "-c", "Hello world"]

# Under heavy load it takes more that standard time to remove Pod endpoint from a cluster.
# This will delay termination of our pod by `preStopSleep`. To make sure kube-proxy has
# enough time to catch up.
Expand Down

0 comments on commit 9bc1d1a

Please sign in to comment.