@@ -20,8 +20,7 @@ global:
2020 helm.sh/policy : " keep"
2121 # -- domain of the application, it is required, apps.silver.devops.gov.bc.ca for silver cluster and apps.devops.gov.bc.ca for gold cluster
2222 domain : " apps.silver.devops.gov.bc.ca" # it is apps.gold.devops.gov.bc.ca for gold cluster
23- # -- the database Alias gives a nice way to switch to different databases, crunchy, patroni ... etc.
24- databaseAlias : bitnami-pg
23+ databaseAlias : ~
2524# -- the components of the application, backend.
2625backendPy :
2726 # -- enable or disable backend
@@ -107,108 +106,3 @@ backendJava:
107106 pdb :
108107 enabled : false # enable it in PRODUCTION for having pod disruption budget.
109108 minAvailable : 1 # the minimum number of pods that must be available during the disruption budget.
110-
111-
112-
113- bitnami-pg :
114- enabled : false
115- image :
116- registry : ghcr.io
117- repository : bcgov/nr-containers/bitnami/postgresql
118- tag : 15.10.0@sha256:708df150b32fddb3d4b8afb8ba2377b667beac2679b3a30ee855b4d2181f87d2
119- auth :
120- existingSecret : ' {{ .Release.Name }}'
121- username : ' quickstart'
122- database : quickstart
123- shmVolume :
124- enabled : false
125- backup :
126- enabled : false
127- cronjob :
128- containerSecurityContext : { }
129- podSecurityContext :
130- enabled : false
131- storage :
132- size : 200Mi
133- primary :
134- persistence :
135- enabled : true
136- storageClass : netapp-block-standard
137- accessModes :
138- - ReadWriteOnce
139- size : 100Mi
140- containerSecurityContext :
141- enabled : false
142- podSecurityContext :
143- enabled : false
144- initdb :
145- scripts : # remove the below script, if POSTGIS is not required.
146- postgis.sh : |
147- #!/bin/sh
148- PGPASSWORD=$POSTGRES_PASSWORD psql -U postgres -d postgres -c "CREATE EXTENSION postgis;"
149- resources :
150- requests :
151- cpu : 50m
152- memory : 150Mi
153-
154- backup :
155- enabled : false
156- pvc :
157- enabled : true
158- size : 256Mi
159- storageClassName : netapp-file-standard
160- accessModes : ReadWriteOnce
161- cronjob :
162- enabled : true
163- volumes :
164- - name : " {{.Release.Name}}-backup"
165- persistentVolumeClaim :
166- claimName : " {{.Release.Name}}-backup"
167- restartPolicy : " Never"
168- schedule : " 0 0 * * *"
169- concurrencyPolicy : " Replace"
170- failedJobsHistoryLimit : 7
171- successfulJobsHistoryLimit : 30
172- startingDeadlineSeconds : 3600
173- containers :
174- - name : backup
175- registry : ' docker.io'
176- repository : ' bcgovimages' # example, it includes registry and repository
177- image : backup-container # the exact component name, be it backend, api-1 etc...
178- tag : latest # the tag of the image, it can be latest, 1.0.0 etc..., or the sha256 hash
179- command :
180- - " /bin/bash"
181- - " -c"
182- - " /backup.sh -1"
183- volumeMounts :
184- - mountPath : " /backups/"
185- name : " {{.Release.Name}}-backup"
186- env :
187- fromValues :
188- - name : BACKUP_DIR
189- value : " /backups/"
190- - name : BACKUP_STRATEGY
191- value : " rolling"
192- - name : NUM_BACKUPS
193- value : ' 5'
194- - name : DAILY_BACKUPS
195- value : ' 7'
196- - name : WEEKLY_BACKUPS
197- value : ' 4'
198- - name : MONTHLY_BACKUPS
199- value : ' 1'
200- - name : DATABASE_SERVICE_NAME # depends on which chart being used, adjust accordingly.
201- value : ' {{.Release.Name}}-{{.Values.global.databaseAlias}}'
202- - name : DEFAULT_PORT
203- value : " 5432"
204- fromGlobalSecret :
205- - name : DATABASE_PASSWORD
206- key : password
207- - name : POSTGRESQL_DATABASE
208- key : databaseName
209- - name : DATABASE_USER
210- key : databaseUser
211- resources :
212- requests :
213- cpu : 20m
214- memory : 128Mi
0 commit comments