If you add multiple initDomains, all the SOAs are attached to the first.
{{ range .Values.powerdns.initDomains }}
INSERT INTO domains (name, type, notified_serial)
VALUES ('{{ . }}', 'MASTER', 24);
INSERT INTO records (domain_id, name, type, content, ttl, prio)
VALUES (1, '{{ . }}', 'SOA', 'k8s.powerdns.server hostmaster.{{ . }} 24 60 60 60 60', 60, 0);
{{- end }}
If you add multiple initDomains, all the SOAs are attached to the first.
https://github.com/puckpuck/helm-charts/blob/main/charts/powerdns/templates/config-db-init.yaml#L109
The problem is the
1fordomain_idon the second insert.Workaround is to not use
initDomainsand perform zone setup separately.