_postgres.tpl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {{- define "postgres.workload" -}}
  2. workload:
  3. {{- include "ix.v1.common.app.postgres" (dict "secretName" "postgres-creds" "resources" .Values.resources) | nindent 2 }}
  4. {{/* Service */}}
  5. service:
  6. postgres:
  7. enabled: true
  8. type: ClusterIP
  9. targetSelector: postgres
  10. ports:
  11. postgres:
  12. enabled: true
  13. primary: true
  14. port: 5432
  15. targetSelector: postgres
  16. {{/* Persistence */}}
  17. persistence:
  18. postgresdata:
  19. enabled: true
  20. type: {{ .Values.minioLogging.logsearch.pgData.type }}
  21. datasetName: {{ .Values.minioLogging.logsearch.pgData.datasetName | default "" }}
  22. hostPath: {{ .Values.minioLogging.logsearch.pgData.hostPath | default "" }}
  23. targetSelector:
  24. # Postgres pod
  25. postgres:
  26. # Postgres container
  27. postgres:
  28. mountPath: /var/lib/postgresql/data
  29. # Permissions container
  30. permissions:
  31. mountPath: /mnt/directories/postgres_data
  32. postgresbackup:
  33. enabled: true
  34. type: {{ .Values.minioLogging.logsearch.pgBackup.type }}
  35. datasetName: {{ .Values.minioLogging.logsearch.pgBackup.datasetName | default "" }}
  36. hostPath: {{ .Values.minioLogging.logsearch.pgBackup.hostPath | default "" }}
  37. targetSelector:
  38. # Postgres backup pod
  39. postgresbackup:
  40. # Postgres backup container
  41. postgresbackup:
  42. mountPath: /postgres_backup
  43. # Permissions container
  44. permissions:
  45. mountPath: /mnt/directories/postgres_backup
  46. {{- end -}}