-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpostgres.yaml
63 lines (63 loc) · 1.71 KB
/
postgres.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: postgres
annotations:
argocd.argoproj.io/sync-wave: "2"
namespace: cicd
spec:
destination:
server: 'https://kubernetes.default.svc'
namespace: database
project: default
source:
repoURL: 'https://charts.bitnami.com/bitnami'
targetRevision: 12.2.4
helm:
values: |-
volumePermissions:
enabled: true
global:
postgresql:
auth:
username: sds8f23c7
database: airflow
existingSecret: postgres-secrets
secretKeys:
adminPasswordKey: postgres-password
userPasswordKey: password
replicationPasswordKey: replication-password
image:
debug: true
primary:
service:
type: LoadBalancer
persistence:
size: 10Gi
configuration: |-
huge_pages = 'off'
listen_addresses = '*'
port = '5432'
max_wal_size = '16000MB'
min_wal_size = '4000MB'
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'
chart: postgresql
syncPolicy:
automated:
prune: true
selfHeal: true