Skip to content

Can this chart be used with a preexisting postgres server? #173

Answered by ividito
totycro asked this question in Q&A
Discussion options

You must be logged in to vote

Postgres credentials and connection details can be provided as environment variables to each service. An example of how these are populated through db.settings is here:

stringData:
{{- range $envKey, $envValue := .Values.db.settings.secrets }}
{{ upper $envKey }}: "{{ $envValue }}"
{{- /* stac-utils seems to require different environment variable for postgres so handle here via if/else to
avoid having to pass more arg secrets */ -}}
{{- if eq $envKey "PGPASSWORD" }}
POSTGRES_PASS: "{{ $envValue }}"
{{- end }}
{{- if eq $envKey "PGDATABASE" }}
POSTGRES_DBNAME

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@pantierra
Comment options

Comment options

You must be logged in to vote
1 reply
@totycro
Comment options

Answer selected by totycro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants