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

feat: update powerdns chart

parent 96909461
No related branches found
No related tags found
No related merge requests found
Pipeline #2951 failed
......@@ -8,8 +8,9 @@ data:
pdns.conf: |-
include-dir=/etc/powerdns/pdns.d
database.conf: |-
launch=lmdb
lmdb-filename=/data/pdns.lmdb
launch=gsqlite3
gsqlite3-dnssec
gsqlite3-database=/data/pdns.sqlite
security.conf: |-
setuid={{ .Values.securityContext.runAsUser }}
setgid={{ .Values.securityContext.runAsGroup }}
......
......@@ -36,6 +36,25 @@ spec:
- name: tmp
emptyDir:
medium: Memory
initContainers:
- name: sqlite-init
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: keinos/sqlite3
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- "sqlite3"
args:
- "/data/pdns.sqlite"
- "-init"
- "/secret/init.sql"
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- mountPath: /data
name: data
- mountPath: /secret
name: secret
containers:
- name: {{ .Chart.Name }}
securityContext:
......
......@@ -10,3 +10,5 @@ stringData:
{{ if .Values.api.enabled }}
api-key={{ .Values.api.key }}
{{ end }}
init.sql: |-
{{- .Values.init | nindent 4 }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment