Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable/node-local-dns]: feat(node-local-dns): add option to override coreDNS config #508

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading