|
@@ -4,47 +4,13 @@ workload:
|
|
|
"resources" .Values.resources
|
|
|
"ixChartContext" .Values.ixChartContext) | nindent 2 }}
|
|
|
|
|
|
-{{/* Service */}}
|
|
|
service:
|
|
|
- postgres:
|
|
|
- enabled: true
|
|
|
- type: ClusterIP
|
|
|
- targetSelector: postgres
|
|
|
- ports:
|
|
|
- postgres:
|
|
|
- enabled: true
|
|
|
- primary: true
|
|
|
- port: 5432
|
|
|
- targetSelector: postgres
|
|
|
+ {{- include "ix.v1.common.app.postgresService" $ | nindent 2 }}
|
|
|
|
|
|
{{/* Persistence */}}
|
|
|
persistence:
|
|
|
- postgresdata:
|
|
|
- enabled: true
|
|
|
- type: {{ .Values.giteaStorage.pgData.type }}
|
|
|
- datasetName: {{ .Values.giteaStorage.pgData.datasetName | default "" }}
|
|
|
- hostPath: {{ .Values.giteaStorage.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.giteaStorage.pgBackup.type }}
|
|
|
- datasetName: {{ .Values.giteaStorage.pgBackup.datasetName | default "" }}
|
|
|
- hostPath: {{ .Values.giteaStorage.pgBackup.hostPath | default "" }}
|
|
|
- targetSelector:
|
|
|
- # Postgres backup pod
|
|
|
- postgresbackup:
|
|
|
- # Postgres backup container
|
|
|
- postgresbackup:
|
|
|
- mountPath: /postgres_backup
|
|
|
- # Permissions container
|
|
|
- permissions:
|
|
|
- mountPath: /mnt/directories/postgres_backup
|
|
|
+ {{- include "ix.v1.common.app.postgresPersistence"
|
|
|
+ (dict "pgData" .Values.giteaStorage.pgData
|
|
|
+ "pgBackup" .Values.giteaStorage.pgBackup
|
|
|
+ ) | nindent 2 }}
|
|
|
{{- end -}}
|