Files
chart/library/ix-dev/enterprise/minio/templates/_postgres.tpl
Stavros Kois 3a6e29ae9e NAS-120452 / 23.10 / Add MinIO Enterprise (#1002)
* Add minio to enterprise train

* Adjust hostnetwork based on multimode configuration

* add update strategy and explicitly set permissions at install time

* minor typo

* use new common

* bump common

* Add upgrade info json

* make immutable the run context and check backup permissions before chowning

* spacing
2023-04-05 17:57:03 +03:00

49 lines
1.5 KiB
Smarty

{{- define "postgres.workload" -}}
workload:
{{- include "ix.v1.common.app.postgres" (dict "secretName" "postgres-creds" "resources" .Values.resources) | nindent 2 }}
{{/* Service */}}
service:
postgres:
enabled: true
type: ClusterIP
targetSelector: postgres
ports:
postgres:
enabled: true
primary: true
port: 5432
targetSelector: postgres
{{/* Persistence */}}
persistence:
postgresdata:
enabled: true
type: {{ .Values.minioLogging.logsearch.pgData.type }}
datasetName: {{ .Values.minioLogging.logsearch.pgData.datasetName | default "" }}
hostPath: {{ .Values.minioLogging.logsearch.pgData.hostPath | default "" }}
targetSelector:
# Postgres pod
postgres:
# Postgres container
postgres:
mountPath: /var/lib/postgresql/data
# Permissions container
permissions:
mountPath: /mnt/directories/postgres_data
postgresbackup:
enabled: true
type: {{ .Values.minioLogging.logsearch.pgBackup.type }}
datasetName: {{ .Values.minioLogging.logsearch.pgBackup.datasetName | default "" }}
hostPath: {{ .Values.minioLogging.logsearch.pgBackup.hostPath | default "" }}
targetSelector:
# Postgres backup pod
postgresbackup:
# Postgres backup container
postgresbackup:
mountPath: /postgres_backup
# Permissions container
permissions:
mountPath: /mnt/directories/postgres_backup
{{- end -}}