Browse Source

postgresql values corrections

master
Keny Villela 2 years ago
parent
commit
68617a274d
  1. 2
      charts/sigi/v0.1.0/questions.yaml
  2. 6
      charts/sigi/v0.1.0/templates/deployment.yaml
  3. 11
      charts/sigi/v0.1.0/values.yaml

2
charts/sigi/v0.1.0/questions.yaml

@ -99,7 +99,7 @@ questions:
type: boolean type: boolean
group: PostgreSQL group: PostgreSQL
required: false required: false
- variable: postgresql.postgresqlPassword - variable: postgresql.auth.Password
default: "sigi" default: "sigi"
description: "Senha do banco de dados Postgres" description: "Senha do banco de dados Postgres"
label: "Senha do Postgres" label: "Senha do Postgres"

6
charts/sigi/v0.1.0/templates/deployment.yaml

@ -38,7 +38,7 @@ spec:
protocol: TCP protocol: TCP
env: env:
- name: DATABASE_URL - name: DATABASE_URL
value: {{ printf "postgresql://%s:%s@%s:5432/%s" .Values.postgresql.postgresqlUsername .Values.postgresql.postgresqlPassword (include "postgresql.fullname" .) .Values.postgresql.postgresqlDatabase| quote }} value: {{ printf "postgresql://%s:%s@%s:5432/%s" .Values.postgresql.auth.Username .Values.postgresql.auth.Password (include "postgresql.fullname" .) .Values.postgresql.auth.Database| quote }}
- name: ADMIN_PASSWORD - name: ADMIN_PASSWORD
value: "{{ .Values.sigi.adminPassword }}" value: "{{ .Values.sigi.adminPassword }}"
- name: ADMIN_EMAIL - name: ADMIN_EMAIL
@ -59,7 +59,7 @@ spec:
# - mountPath: /var/interlegis/sigi/data # - mountPath: /var/interlegis/sigi/data
# name: data # name: data
- mountPath: /srv/interlegis/sigi/media - mountPath: /srv/interlegis/sigi/media
name: media name: {{ include "sigi.fullname" . }}-media
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
@ -85,7 +85,7 @@ spec:
# secret: # secret:
# defaultMode: 440 # defaultMode: 440
# secretName: {{ include "sigi.fullname" . }}-secretkey # secretName: {{ include "sigi.fullname" . }}-secretkey
- name: media - name: {{ include "sigi.fullname" . }}-media
{{- if .Values.persistence.enabled }} {{- if .Values.persistence.enabled }}
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ include "sigi.fullname" . }}-media claimName: {{ include "sigi.fullname" . }}-media

11
charts/sigi/v0.1.0/values.yaml

@ -85,8 +85,8 @@ velero:
postgresql: postgresql:
internal: true internal: true
image: image:
# repository: porto.interlegis.leg.br/bitnami/postgresql # repository: porto.interlegis.leg.br/bitnami/postgresql
# registry: porto.interlegis.leg.br # registry: porto.interlegis.leg.br
registry: docker.io registry: docker.io
repository: bitnami/postgresql repository: bitnami/postgresql
tag: 14.4.0-debian-11-r0 tag: 14.4.0-debian-11-r0
@ -97,9 +97,10 @@ postgresql:
persistence: persistence:
enabled: true enabled: true
size: 1Gi size: 1Gi
postgresqlPassword: sigi auth:
postgresqlUsername: sigi Password: sigi
postgresqlDatabase: sigi Username: sigi
Database: sigi
resources: resources:
requests: requests:
cpu: 50m cpu: 50m

Loading…
Cancel
Save