diff --git a/charts/node-local-dns/Chart.yaml b/charts/node-local-dns/Chart.yaml index b6b19ec..13b5c3e 100644 --- a/charts/node-local-dns/Chart.yaml +++ b/charts/node-local-dns/Chart.yaml @@ -1,7 +1,7 @@ --- apiVersion: v2 name: node-local-dns -version: 1.4.0-rc.2 +version: 1.4.0-rc.3 appVersion: 1.22.24 home: https://github.com/lablabs/k8s-nodelocaldns-helm description: NodeLocal DNS Cache helm chart diff --git a/charts/node-local-dns/templates/configmap.yaml b/charts/node-local-dns/templates/configmap.yaml index 74c72f7..f790f8c 100644 --- a/charts/node-local-dns/templates/configmap.yaml +++ b/charts/node-local-dns/templates/configmap.yaml @@ -34,6 +34,25 @@ data: {{- if $v.plugins.reload }} reload {{- end }} + {{- if $v.plugins.hosts }} + hosts { + {{- range $kk, $vv := $v.plugins.hosts.entries }} + {{ $vv.ip }} {{ $vv.name }} + {{- end }} + {{- if $v.plugins.hosts.ttl }} + ttl {{ $v.plugins.hosts.ttl }} + {{- end }} + {{- if $v.plugins.hosts.no_reverse }} + no_reverse + {{- end }} + {{- if $v.plugins.hosts.reload }} + reload {{ $v.plugins.hosts.reload | quote }} + {{- end }} + {{- if $v.plugins.hosts.fallthrough }} + fallthrough + {{- end }} + } + {{- end }} {{- if $v.plugins.log }} log . {{ default "combined" $v.plugins.log.format }} { class {{ $v.plugins.log.classes }} diff --git a/charts/node-local-dns/values.yaml b/charts/node-local-dns/values.yaml index 6e059c0..5f676e2 100644 --- a/charts/node-local-dns/values.yaml +++ b/charts/node-local-dns/values.yaml @@ -60,6 +60,14 @@ config: prometheus: true health: port: 8080 +# hosts: +# entries: # dns.hosts INLINE +# - ip: 10.5.0.4 +# name: blabla.lala +# ttl: 3600 # in seconds, 3600 (default) +# no_reverse: true # set no_reverse +# reload: "0s" # 0s disable (default), use duration notation, ie, "1.5h" +# fallthrough: true ip6.arpa:53: plugins: errors: true