dns: generate zone config
This commit is contained in:
parent
f22fb0080c
commit
48fa4991e1
1 changed files with 16 additions and 1 deletions
|
@ -7,7 +7,7 @@ spec:
|
|||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Release.Name }}-knot
|
||||
replicas: 1
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
@ -77,3 +77,18 @@ data:
|
|||
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 }}
|
||||
|
|
Loading…
Reference in a new issue