Files
pieced-threema-gateway-public/deploy/helm/pieced-threema-gateway/templates/database.yaml

21 lines
523 B
YAML

{{- if .Values.postgres.enabled }}
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: pieced-threema-gateway-db
namespace: {{ .Values.namespace }}
spec:
instances: {{ .Values.postgres.instances }}
bootstrap:
initdb:
database: relay
owner: relay
storage:
size: {{ .Values.postgres.storage.size }}
storageClass: {{ .Values.postgres.storage.storageClass }}
resources:
{{- toYaml .Values.postgres.resources | nindent 4 }}
monitoring:
enablePodMonitor: true
{{- end }}