33 lines
620 B
YAML
33 lines
620 B
YAML
|
---
|
||
|
apiVersion: v1
|
||
|
kind: ConfigMap
|
||
|
metadata:
|
||
|
name: {{ tpl .Values.identifier . }}-config
|
||
|
data:
|
||
|
knot.conf: |
|
||
|
server:
|
||
|
listen: 0.0.0.0@53
|
||
|
listen: ::@53
|
||
|
|
||
|
log:
|
||
|
- target: stdout
|
||
|
|
||
|
zone:
|
||
|
- domain: place7.ungleich.ch
|
||
|
file: /zones/place7.ungleich.ch
|
||
|
|
||
|
notknot.conf: |
|
||
|
server:
|
||
|
listen: 0.0.0.0@53
|
||
|
listen: ::@53
|
||
|
|
||
|
log:
|
||
|
- target: stdout
|
||
|
|
||
|
zone:
|
||
|
{{- range $path, $_ := .Files.Glob "zones/*" }}
|
||
|
{{- $domain := base $path }}
|
||
|
{{ printf "- domain: %s" $domain | indent 2}}
|
||
|
{{ printf "file: /zones/%s" $domain | indent 4}}
|
||
|
{{ end }}
|