Skip to content

Commit

Permalink
feat(node-local-dns): add option to override coreDNS config
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrzemin committed Aug 27, 2023
1 parent a5b8976 commit 80eb88f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions stable/node-local-dns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ helm install my-release deliveryhero/node-local-dns -f values.yaml
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| config.commProtocol | string | `"force_tcp"` | |
| config.customConfig | string | `""` | |
| config.dnsDomain | string | `"cluster.local"` | |
| config.dnsServer | string | `"172.20.0.10"` | |
| config.healthPort | int | `8080` | |
Expand Down
4 changes: 4 additions & 0 deletions stable/node-local-dns/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
{{- include "node-local-dns.labels" . | nindent 4 }}
data:
Corefile: |
{{ if .Values.config.customConfig }}
{{ tpl .Values.config.customConfig . }}
{{ else }}
{{ .Values.config.dnsDomain }}:53 {
errors
cache {
Expand Down Expand Up @@ -54,3 +57,4 @@ data:
forward . __PILLAR__UPSTREAM__SERVERS__
prometheus :9253
}
{{ end }}
3 changes: 3 additions & 0 deletions stable/node-local-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ config:

skipTeardown: true

# Overrides the generated configuration with specified one.
customConfig: ""

nameOverride: ""
fullnameOverride: ""

Expand Down

0 comments on commit 80eb88f

Please sign in to comment.