diff --git a/charts/coredns/Chart.yaml b/charts/coredns/Chart.yaml index 13dca33..ebd9637 100644 --- a/charts/coredns/Chart.yaml +++ b/charts/coredns/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: coredns -version: 1.16.3 +version: 1.16.4 appVersion: 1.8.4 home: https://coredns.io icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png diff --git a/charts/coredns/templates/configmap.yaml b/charts/coredns/templates/configmap.yaml index ebbea9b..64bfe4f 100644 --- a/charts/coredns/templates/configmap.yaml +++ b/charts/coredns/templates/configmap.yaml @@ -19,6 +19,9 @@ metadata: {{- end }} data: Corefile: |- + {{- range $name, $conf := .Values.extraConfig }} + {{ $name }}{{ if $conf.parameters }} {{ $conf.parameters }}{{ end }} + {{- end }} {{ range .Values.servers }} {{- range $idx, $zone := .zones }}{{ if $idx }} {{ else }}{{ end }}{{ default "" $zone.scheme }}{{ default "." $zone.zone }}{{ else }}.{{ end -}} {{- if .port }}:{{ .port }} {{ end -}} diff --git a/charts/coredns/values.yaml b/charts/coredns/values.yaml index c952736..3d321e5 100644 --- a/charts/coredns/values.yaml +++ b/charts/coredns/values.yaml @@ -144,6 +144,13 @@ servers: # hello world # foo bar +# Extra configuration that is applied outside of the default zone block. +# Example to include additional config files, which may come from extraVolumes: +# extraConfig: +# import: +# parameters: /opt/coredns/*.conf +extraConfig: {} + # To use the livenessProbe, the health plugin needs to be enabled in CoreDNS' server config livenessProbe: enabled: true