Skip to content
Snippets Groups Projects
Verified Commit 4f528dc8 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

feat: update powerdns chart

parent d4bbe902
No related branches found
No related tags found
No related merge requests found
...@@ -2,5 +2,5 @@ apiVersion: v2 ...@@ -2,5 +2,5 @@ apiVersion: v2
name: powerdns name: powerdns
description: Helm Chart for powerdns-Core description: Helm Chart for powerdns-Core
type: application type: application
version: 0.0.1 version: 0.0.5
appVersion: "v4.4.1" appVersion: "v4.4.1"
...@@ -5,12 +5,17 @@ metadata: ...@@ -5,12 +5,17 @@ metadata:
labels: labels:
{{- include "powerdns-helm.labels" . | nindent 4 }} {{- include "powerdns-helm.labels" . | nindent 4 }}
data: data:
security.conf: |-
setuid=100
setgid=101
webserver.conf: |- webserver.conf: |-
api={{ .Values.api }} api={{ .Values.api.enabled }}
{{ if .Values.api.enabled }}
webserver-address=0.0.0.0 webserver-address=0.0.0.0
webserver-port=8080 webserver-port=8080
webserver-print-arguments=no webserver-print-arguments=no
webserver-allow-from=0.0.0.0/0,::/0 webserver-allow-from=0.0.0.0/0,::/0
{{ end }}
database.conf: |- database.conf: |-
launch=gpgsql launch=gpgsql
gpgsql-host={{ .Values.database.hostname }} gpgsql-host={{ .Values.database.hostname }}
...@@ -20,7 +25,8 @@ data: ...@@ -20,7 +25,8 @@ data:
gpgsql-dnssec={{ .Values.database.dnssec }} gpgsql-dnssec={{ .Values.database.dnssec }}
dnsupdate.conf: |- dnsupdate.conf: |-
dnsupdate=yes dnsupdate=yes
allow-dnsupdate-from=127.0.0.0/8 10.244.0.0/16 allow-dnsupdate-from={{ .Values.internalCidr | join "," }}
listen.conf: |- listen.conf: |-
local-port=5353 local-port=5353
default.conf: |-
default-soa-content="{{ .Values.default.hostname }} {{ .Values.default.email }} 0 10800 3600 604800 3600"
...@@ -31,6 +31,9 @@ spec: ...@@ -31,6 +31,9 @@ spec:
- name: configs - name: configs
configMap: configMap:
name: {{ include "powerdns-helm.fullname" . }} name: {{ include "powerdns-helm.fullname" . }}
- name: tmp
emptyDir:
medium: Memory
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
securityContext: securityContext:
...@@ -65,6 +68,8 @@ spec: ...@@ -65,6 +68,8 @@ spec:
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
volumeMounts: volumeMounts:
- mountPath: /var/run
name: tmp
- mountPath: /etc/pdns/conf.d/secrets.conf - mountPath: /etc/pdns/conf.d/secrets.conf
name: secrets name: secrets
subPath: secrets.conf subPath: secrets.conf
......
{{ if .Values.api.enabled }}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
...@@ -19,3 +20,4 @@ spec: ...@@ -19,3 +20,4 @@ spec:
port: port:
name: http name: http
pathType: Prefix pathType: Prefix
{{ end }}
...@@ -5,7 +5,9 @@ metadata: ...@@ -5,7 +5,9 @@ metadata:
labels: labels:
{{- include "powerdns-helm.labels" . | nindent 4 }} {{- include "powerdns-helm.labels" . | nindent 4 }}
stringData: stringData:
apikey: {{ .Values.apiKey }} apikey: {{ .Values.api.key }}
secrets.conf: |- secrets.conf: |-
api-key={{ .Values.apiKey }} {{ if .Values.api.enabled }}
api-key={{ .Values.api.key }}
{{ end }}
gpgsql-password={{ .Values.database.password }} gpgsql-password={{ .Values.database.password }}
...@@ -9,7 +9,17 @@ imagePullSecrets: [ ] ...@@ -9,7 +9,17 @@ imagePullSecrets: [ ]
nameOverride: "" nameOverride: ""
fullnameOverride: "" fullnameOverride: ""
apiKey: "hunter2" internalCidr:
- "127.0.0.0/8"
- "10.244.0.0/16"
api:
enabled: false
key: "hunter2"
default:
hostname: "a.misconfigured.dns.server.invalid"
email: "hostmaster.@"
ingress: ingress:
host: "dns.example.tld" host: "dns.example.tld"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment