2024-01-23 01:17:39 +00:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
2023-04-07 02:39:06 +00:00
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: postgresql
|
|
|
|
namespace: database
|
|
|
|
spec:
|
|
|
|
interval: 5m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: postgresql
|
2024-02-01 15:59:43 +00:00
|
|
|
version: 14.0.x
|
2023-04-07 02:39:06 +00:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bitnami-charts
|
|
|
|
namespace: flux-system
|
|
|
|
values:
|
|
|
|
auth:
|
|
|
|
existingSecret: "pgsql-secrets"
|
|
|
|
secretKeys:
|
|
|
|
adminPasswordKey: "adminPassword"
|
|
|
|
replicationPasswordKey: "replicationPassword"
|
2023-04-11 00:40:18 +00:00
|
|
|
|
2023-08-24 21:13:58 +00:00
|
|
|
serviceMonitor:
|
|
|
|
enabled: true
|
|
|
|
labels:
|
|
|
|
release: kube-prometheus-stack
|
|
|
|
|
2023-04-11 01:13:13 +00:00
|
|
|
volumePermissions:
|
|
|
|
enabled: true
|
2023-04-11 01:50:10 +00:00
|
|
|
|
2023-04-11 02:51:45 +00:00
|
|
|
primary:
|
|
|
|
persistence:
|
2023-06-02 02:14:27 +00:00
|
|
|
existingClaim: "postgresql-pv-claim"
|
|
|
|
|
|
|
|
containerSecurityContext:
|
|
|
|
enabled: true
|
|
|
|
runAsUser: 10000
|
|
|
|
|
2023-10-22 16:25:20 +00:00
|
|
|
extendedConfiguration: |-
|
|
|
|
huge_pages = off
|
|
|
|
extraVolumeMounts:
|
|
|
|
- name: pg-sample-config
|
|
|
|
mountPath: /opt/bitnami/postgresql/share/postgresql.conf.sample
|
|
|
|
subPath: postgresql.conf.sample
|
|
|
|
extraVolumes:
|
|
|
|
- configMap:
|
|
|
|
name: pg-sample-config
|
|
|
|
name: pg-sample-config
|
|
|
|
|
|
|
|
extraDeploy:
|
|
|
|
- apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: pg-sample-config
|
|
|
|
data:
|
|
|
|
postgresql.conf.sample: |-
|
|
|
|
huge_pages = off
|
|
|
|
|
2023-06-02 02:14:27 +00:00
|
|
|
readReplicas:
|
|
|
|
containerSecurityContext:
|
|
|
|
enabled: true
|
|
|
|
runAsUser: 10000
|