Skip to content

Commit

Permalink
Add initContainers option
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Bauer <[email protected]>
  • Loading branch information
alexander-bauer committed Jan 14, 2023
1 parent 46af417 commit 99705b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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 99705b3

Please sign in to comment.