mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-31 05:49:04 +00:00
31 lines
882 B
YAML
Executable File
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
|