feat(installation): alerts env vars

This commit is contained in:
Taha Yassine Kraiem 2022-01-16 22:44:01 +01:00
parent bb497eed5d
commit 51f49a7f02
2 changed files with 39 additions and 7 deletions

View file

@ -38,12 +38,34 @@ spec:
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: POSTGRES_STRING
value: 'postgres://{{ .Values.global.postgresql.postgresqlUser }}:{{ .Values.global.postgresql.postgresqlPassword }}@{{ .Values.global.postgresql.postgresqlHost }}:{{ .Values.global.postgresql.postgresqlPort }}/{{ .Values.global.postgresql.postgresqlDatabase }}'
{{- range $key, $val := .Values.env }}
- name: {{ $key }}
- name: version_number
value: '{{ .Chart.AppVersion }}'
- name: pg_host
value: '{{ .Values.global.postgresql.postgresqlHost }}'
- name: pg_port
value: "5432"
- name: pg_dbname
value: "{{ .Values.global.postgresql.postgresqlDatabase }}"
- name: pg_user
value: '{{ .Values.global.postgresql.postgresqlUser }}'
- name: pg_password
value: '{{ .Values.global.postgresql.postgresqlPassword }}'
- name: S3_HOST
{ { - if eq .Values.global.s3.endpoint "http://minio.db.svc.cluster.local:9000" } }
value: 'https://{{ .Values.global.domainName }}'
{ { - else } }
value: '{{ .Values.global.s3.endpoint }}'
{ { - end } }
- name: S3_KEY
value: '{{ .Values.global.s3.accessKey }}'
- name: S3_SECRET
value: '{{ .Values.global.s3.secretKey }}'
- name: AWS_DEFAULT_REGION
value: '{{ .Values.global.s3.region }}'
{ { - range $key, $val := .Values.env } }
- name: { { $key } }
value: '{{ $val }}'
{{- end}}
{ { - end } }
ports:
- name: http
containerPort: {{ .Values.service.port }}

View file

@ -76,8 +76,18 @@ autoscaling:
# targetMemoryUtilizationPercentage: 80
env:
ALERT_NOTIFICATION_STRING: http://chalice-openreplay.app.svc.cluster.local:8000/alerts/notifications
CLICKHOUSE_STRING: 'tcp://clickhouse.db.svc.cluster.local:9000/default'
EMAIL_HOST: ''
EMAIL_PORT: '587'
EMAIL_USER: ''
EMAIL_PASSWORD: ''
EMAIL_USE_TLS: 'true'
EMAIL_USE_SSL: 'false'
EMAIL_SSL_KEY: ''
EMAIL_SSL_CERT: ''
EMAIL_FROM: OpenReplay<do-not-reply@openreplay.com>
SITE_URL: ''
PYTHONUNBUFFERED: '0'
nodeSelector: {}