chore(helm): Adding secret with db secrets
Use all the db jobs with secret from this. Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
4b34eceb15
commit
0780b17a1a
1 changed files with 23 additions and 0 deletions
|
|
@ -8,3 +8,26 @@ metadata:
|
|||
"helm.sh/hook-weight": "-6" # Higher precidence, so the first the config map will get created.
|
||||
data:
|
||||
version: {{ .Chart.AppVersion }}
|
||||
---
|
||||
# If some jobs or crons are doing db operations, or using credentias,
|
||||
# it should fetch them from this secret.
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: openreplay-secrets
|
||||
namespace: "{{ .Release.Namespace }}"
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install, pre-upgrade
|
||||
"helm.sh/hook-weight": "-6" # Higher precidence, so the first the config map will get created.
|
||||
"helm.sh/hook-delete-policy": "before-hook-creation"
|
||||
data:
|
||||
PGHOST: "{{ .Values.global.postgresql.postgresqlHost | b64enc }}"
|
||||
PGPORT: "{{ .Values.global.postgresql.postgresqlPort | b64enc }}"
|
||||
PGDATABASE: "{{ .Values.global.postgresql.postgresqlDatabase | b64enc }}"
|
||||
PGUSER: "{{ .Values.global.postgresql.postgresqlUser | b64enc }}"
|
||||
PGPASSWORD: "{{ .Values.global.postgresql.postgresqlPassword | b64enc }}"
|
||||
CLICKHOUSE_USER: "{{ .Values.global.clickhouse.username | b64enc }}"
|
||||
CLICKHOUSE_PASSWORD: "{{ .Values.global.clickhouse.password | b64enc }}"
|
||||
MINIO_HOST: "{{ .Values.global.minio.minioHost | b64enc }}"
|
||||
MINIO_ACCESS_KEY: "{{ .Values.global.s3.accessKey | b64enc }}"
|
||||
MINIO_SECRET_KEY: "{{ .Values.global.s3.secretKey | b64enc }}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue