You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.0 KiB
34 lines
1.0 KiB
{{- if .Values.postgresql.enabled }}
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
kind: Cluster
|
|
metadata:
|
|
name: {{ .Values.postgresql.clusterName }}
|
|
labels:
|
|
{{- include "caduser.labels" . | nindent 4 }}
|
|
spec:
|
|
instances: {{ .Values.postgresql.instances }}
|
|
|
|
imageName: {{ .Values.postgresql.image }}
|
|
|
|
bootstrap:
|
|
initdb:
|
|
database: {{ .Values.postgresql.databaseName }}
|
|
owner: {{ .Values.postgresql.owner }}
|
|
localeCollate: {{ .Values.postgresql.initdb.localeCollate }}
|
|
localeCType: {{ .Values.postgresql.initdb.localeCType }}
|
|
encoding: {{ .Values.postgresql.initdb.encoding }}
|
|
|
|
storage:
|
|
size: {{ .Values.postgresql.storageSize }}
|
|
{{- if .Values.postgresql.storageClass }}
|
|
storageClass: {{ .Values.postgresql.storageClass }}
|
|
{{- end }}
|
|
|
|
resources:
|
|
{{- toYaml .Values.postgresql.resources | nindent 4 }}
|
|
|
|
{{- if .Values.postgresql.superuserSecret }}
|
|
superuserSecret:
|
|
name: {{ .Values.postgresql.superuserSecret }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|