Skip to content

Commit

Permalink
[stable/node-local-dns] add noIPv6Lookups config option (deliveryhero…
Browse files Browse the repository at this point in the history
…#587)

* add noIPv6Lookups config option

* update indent
  • Loading branch information
andrii29 authored and fekaiser committed Oct 23, 2024
1 parent 9a213da commit 39d0708
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/node-local-dns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: node-local-dns
version: 2.0.12-1
version: 2.0.13-1
appVersion: 1.23.1
maintainers:
- name: gabrieladt
Expand Down
3 changes: 2 additions & 1 deletion stable/node-local-dns/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# node-local-dns

![Version: 2.0.12](https://img.shields.io/badge/Version-2.0.12-informational?style=flat-square) ![AppVersion: 1.23.1](https://img.shields.io/badge/AppVersion-1.23.1-informational?style=flat-square)
![Version: 2.0.13](https://img.shields.io/badge/Version-2.0.13-informational?style=flat-square) ![AppVersion: 1.23.1](https://img.shields.io/badge/AppVersion-1.23.1-informational?style=flat-square)

A chart to install node-local-dns.

Expand Down Expand Up @@ -58,6 +58,7 @@ helm install my-release deliveryhero/node-local-dns -f values.yaml
| config.healthPort | int | `8080` | |
| config.localDns | string | `"169.254.20.25"` | |
| config.logging | bool | `false` | |
| config.noIPv6Lookups | bool | `false` | |
| config.prefetch.amount | int | `3` | |
| config.prefetch.duration | string | `"30s"` | |
| config.prefetch.enabled | bool | `false` | |
Expand Down
20 changes: 20 additions & 0 deletions stable/node-local-dns/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ data:
forward . __PILLAR__CLUSTER__DNS__ {
{{ .Values.config.commProtocol }}
}
{{- if .Values.config.noIPv6Lookups }}
template IN AAAA {
rcode NOERROR
}
{{- end }}
prometheus :9253
{{- if .Values.config.logging }}
log
Expand All @@ -55,6 +60,11 @@ data:
forward . __PILLAR__CLUSTER__DNS__ {
{{ .Values.config.commProtocol }}
}
{{- if .Values.config.noIPv6Lookups }}
template IN AAAA {
rcode NOERROR
}
{{- end }}
prometheus :9253
{{- if .Values.config.logging }}
log
Expand All @@ -79,6 +89,11 @@ data:
forward . __PILLAR__CLUSTER__DNS__ {
{{ .Values.config.commProtocol }}
}
{{- if .Values.config.noIPv6Lookups }}
template IN AAAA {
rcode NOERROR
}
{{- end }}
prometheus :9253
{{- if .Values.config.logging }}
log
Expand All @@ -104,6 +119,11 @@ data:
prometheus :9253
{{- if .Values.config.logging }}
log
{{- end }}
{{- if .Values.config.noIPv6Lookups }}
template IN AAAA {
rcode NOERROR
}
{{- end }}
}
{{ 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 @@ -22,6 +22,9 @@ config:
# Set communication protocol. Options are `prefer_udp` or `force_tcp`
commProtocol: "force_tcp"

# If true, return NOERROR when attempting to resolve an IPv6 address
noIPv6Lookups: false

# If enabled, coredns will prefetch popular items when they are about to be expunged from the cache. https://coredns.io/plugins/cache/
prefetch:
enabled: false
Expand Down

0 comments on commit 39d0708

Please sign in to comment.