charts/charts/stable/powerdns/templates/configmap.yaml
2021-03-18 13:11:24 +01:00

31 lines
882 B
YAML
Executable File

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "powerdns.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "powerdns.name" . }}
helm.sh/chart: {{ include "powerdns.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
data:
01-general-config.conf: |
{{ range $key, $value := .Values.powerdns.config -}}
{{ $key }}={{ $value }}
{{ end }}
00-api-key.conf: |
api=yes
{{ if .Values.powerdns.api_key }}
api-key={{ .Values.powerdns.api_key }}
{{ else }}
api-key={{ randAlphaNum 24 }}
{{ end }}
webserver=yes
# IP Address of web server to listen on
webserver-address=0.0.0.0
# Port of web server to listen on
webserver-port=8081
# Web server access is only allowed from these subnets
webserver-allow-from=0.0.0.0/0,::/0