2021-08-12 11:55:45 +00:00
|
|
|
image:
|
2021-12-05 11:44:43 +00:00
|
|
|
repository: ghcr.io/truecharts/postgresql
|
2021-08-12 11:55:45 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2022-05-25 06:46:45 +00:00
|
|
|
tag: v14.3.0@sha256:d569b16398ea62090a7bb0813d8d9383a54631deb7e01ceb8391d95ef640fec1
|
2021-08-12 11:55:45 +00:00
|
|
|
|
2021-11-15 19:50:10 +00:00
|
|
|
controller:
|
|
|
|
# -- Set the controller type.
|
|
|
|
# Valid options are deployment, daemonset or statefulset
|
|
|
|
type: statefulset
|
|
|
|
# -- Number of desired pods
|
|
|
|
replicas: 1
|
|
|
|
# -- Set the controller upgrade strategy
|
|
|
|
# For Deployments, valid values are Recreate (default) and RollingUpdate.
|
|
|
|
# For StatefulSets, valid values are OnDelete and RollingUpdate (default).
|
|
|
|
# DaemonSets ignore this.
|
|
|
|
strategy: RollingUpdate
|
|
|
|
rollingUpdate:
|
|
|
|
# -- Set deployment RollingUpdate max unavailable
|
|
|
|
unavailable: 1
|
|
|
|
# -- Set deployment RollingUpdate max surge
|
|
|
|
surge:
|
|
|
|
# -- Set statefulset RollingUpdate partition
|
|
|
|
partition:
|
|
|
|
# -- ReplicaSet revision history limit
|
|
|
|
revisionHistoryLimit: 3
|
|
|
|
|
2021-09-26 18:05:21 +00:00
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: false
|
2021-08-12 11:55:45 +00:00
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 5432
|
2021-11-06 21:55:18 +00:00
|
|
|
targetPort: 5432
|
2021-08-12 11:55:45 +00:00
|
|
|
|
2021-08-17 09:52:34 +00:00
|
|
|
## TODO: Fix the backup-on-upgrade system
|
|
|
|
enableUpgradeBackup: false
|
|
|
|
|
2021-09-11 18:58:37 +00:00
|
|
|
podSecurityContext:
|
|
|
|
runAsGroup: 0
|
|
|
|
|
2021-11-16 15:37:35 +00:00
|
|
|
volumeClaimTemplates:
|
2021-08-13 21:43:13 +00:00
|
|
|
db:
|
2021-08-12 11:55:45 +00:00
|
|
|
enabled: true
|
2021-12-05 11:37:24 +00:00
|
|
|
mountPath: "/bitnami/postgresql"
|
2021-11-14 19:19:16 +00:00
|
|
|
|
2022-03-28 19:03:39 +00:00
|
|
|
# -- Probe configuration
|
|
|
|
# -- [[ref]](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)
|
|
|
|
# @default -- See below
|
|
|
|
probes:
|
|
|
|
# -- Liveness probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
liveness:
|
|
|
|
# -- Enable the liveness probe
|
|
|
|
enabled: true
|
|
|
|
# -- Set this to `true` if you wish to specify your own livenessProbe
|
|
|
|
custom: true
|
|
|
|
# -- The spec field contains the values for the default livenessProbe.
|
|
|
|
# If you selected `custom: true`, this field holds the definition of the livenessProbe.
|
|
|
|
# @default -- See below
|
|
|
|
spec:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- sh
|
|
|
|
- -c
|
|
|
|
- "until pg_isready -U ${POSTGRES_USER} -h localhost; do sleep 2 ; done"
|
|
|
|
|
|
|
|
# -- Redainess probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
readiness:
|
|
|
|
# -- Enable the readiness probe
|
|
|
|
enabled: true
|
|
|
|
# -- Set this to `true` if you wish to specify your own readinessProbe
|
|
|
|
custom: true
|
|
|
|
# -- The spec field contains the values for the default readinessProbe.
|
|
|
|
# If you selected `custom: true`, this field holds the definition of the readinessProbe.
|
|
|
|
# @default -- See below
|
|
|
|
spec:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- sh
|
|
|
|
- -c
|
|
|
|
- "until pg_isready -U ${POSTGRES_USER} -h localhost; do sleep 2 ; done"
|
|
|
|
# -- Startup probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
startup:
|
|
|
|
# -- Enable the startup probe
|
|
|
|
enabled: true
|
|
|
|
custom: true
|
|
|
|
# -- The spec field contains the values for the default livenessProbe.
|
|
|
|
# If you selected `custom: true`, this field holds the definition of the livenessProbe.
|
|
|
|
# @default -- See below
|
|
|
|
spec:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- sh
|
|
|
|
- -c
|
|
|
|
- "until pg_isready -U ${POSTGRES_USER} -h localhost; do sleep 2 ; done"
|
2021-08-12 11:55:45 +00:00
|
|
|
|
|
|
|
postgresqlPassword: "testpass"
|
|
|
|
postgresqlUsername: "test"
|
|
|
|
postgresqlDatabase: "test"
|
2021-11-08 16:37:56 +00:00
|
|
|
postgrespassword: "testroot"
|
2021-10-09 23:20:01 +00:00
|
|
|
existingSecret: ""
|
2021-08-12 11:55:45 +00:00
|
|
|
|
|
|
|
envValueFrom:
|
|
|
|
POSTGRES_PASSWORD:
|
|
|
|
secretKeyRef:
|
2021-08-27 14:50:19 +00:00
|
|
|
name: '{{ ( tpl .Values.existingSecret $ ) | default ( include "common.names.fullname" . ) }}'
|
2021-08-12 11:55:45 +00:00
|
|
|
key: "postgresql-password"
|
2021-11-08 16:37:56 +00:00
|
|
|
POSTGRESQL_POSTGRES_PASSWORD:
|
|
|
|
secretKeyRef:
|
|
|
|
name: '{{ ( tpl .Values.existingSecret $ ) | default ( include "common.names.fullname" . ) }}'
|
|
|
|
key: "postgresql-postgres-password"
|
2021-08-12 11:55:45 +00:00
|
|
|
|
|
|
|
envTpl:
|
|
|
|
POSTGRES_USER: "{{ .Values.postgresqlUsername }}"
|
|
|
|
POSTGRES_DB: "{{ .Values.postgresqlDatabase }}"
|
|
|
|
# POSTGRESQL_POSTGRES_PASSWORD: "{{ .Values.postgrespassword }}"
|
|
|
|
# POSTGRESQL_PASSWORD: "{{ .Values.password }}"
|