From 39d0708b8a5a0178340869028643ecdd68cbb6af Mon Sep 17 00:00:00 2001 From: "andrii.k" Date: Wed, 26 Jun 2024 14:55:03 +0300 Subject: [PATCH] [stable/node-local-dns] add noIPv6Lookups config option (#587) * add noIPv6Lookups config option * update indent --- stable/node-local-dns/Chart.yaml | 2 +- stable/node-local-dns/README.md | 3 ++- .../node-local-dns/templates/configmap.yaml | 20 +++++++++++++++++++ stable/node-local-dns/values.yaml | 3 +++ 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/stable/node-local-dns/Chart.yaml b/stable/node-local-dns/Chart.yaml index f87be234..1ded92f0 100644 --- a/stable/node-local-dns/Chart.yaml +++ b/stable/node-local-dns/Chart.yaml @@ -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 diff --git a/stable/node-local-dns/README.md b/stable/node-local-dns/README.md index 549e7ecd..03a36de7 100644 --- a/stable/node-local-dns/README.md +++ b/stable/node-local-dns/README.md @@ -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. @@ -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` | | diff --git a/stable/node-local-dns/templates/configmap.yaml b/stable/node-local-dns/templates/configmap.yaml index 8df2dc56..c8c983d8 100644 --- a/stable/node-local-dns/templates/configmap.yaml +++ b/stable/node-local-dns/templates/configmap.yaml @@ -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 @@ -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 @@ -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 @@ -104,6 +119,11 @@ data: prometheus :9253 {{- if .Values.config.logging }} log + {{- end }} + {{- if .Values.config.noIPv6Lookups }} + template IN AAAA { + rcode NOERROR + } {{- end }} } {{ end }} diff --git a/stable/node-local-dns/values.yaml b/stable/node-local-dns/values.yaml index 6c1af40d..9d42d667 100644 --- a/stable/node-local-dns/values.yaml +++ b/stable/node-local-dns/values.yaml @@ -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