[powerdns] Powerdns fix startup (#313)

This commit is contained in:
Ryan Holt 2020-08-07 16:25:14 -04:00 committed by GitHub
parent ddd4788598
commit 17e306825e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 6 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "latest"
description: PowerDNS is a DNS server, written in C++ and licensed under the GPL. It runs on most Unix derivatives. PowerDNS features a large number of different backends ranging from simple BIND style zonefiles to relational databases and load balancing/failover algorithms. A DNS recursor is provided as a separate program.
name: powerdns
version: 1.0.0
version: 1.0.1
home: https://www.powerdns.com/
sources:
- http://www.github.com/PowerDNS/

View File

@ -10,6 +10,8 @@ spec:
matchLabels:
app.kubernetes.io/name: {{ include "powerdns.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
strategy:
type: {{ .Values.strategyType }}
template:
metadata:
labels:

View File

@ -7,7 +7,8 @@ metadata:
type: Opaque
data:
{{- if .Values.postgres.enabled }}
postgres_host: "{{ printf (include "powerdns.fullname" "-postgres" ) | b64enc }}"
{{- $postgrestmp := printf "%s-%s" .Release.Name "postgres"}}
postgres_host: "{{ $postgrestmp |b64enc }}"
postgres_port: "{{ .Values.powerdns.postgres.port | toString | b64enc }}"
postgres_username: "{{ .Values.powerdns.postgres.username | b64enc }}"
postgres_password: "{{ .Values.powerdns.postgres.password | toString | b64enc }}"

View File

@ -3,6 +3,7 @@
# Declare variables to be passed into your templates.
replicaCount: 1
strategyType: Recreate
image:
repository: psitrax/powerdns
@ -60,14 +61,10 @@ affinity: {}
powerdns:
domain: mydomain.local
postgres:
host: powerdns-postgres
port: 5432
username: pdns
password: pdnspass
database: pdns
mysql:
host: powerdns-mariadb
port: 3306
username: pdns
password: pdnspass
database: pdns
@ -89,6 +86,10 @@ mariadb:
enabled: false
postgres:
enabled: false
global:
postgresqlUsername: pdns
postgresqlPassword: pdnspass
postgresqlDatabase: pdns
# Probes configuration
probes: