-
Notifications
You must be signed in to change notification settings - Fork 5
Add helm chart for postgresql database #382
base: main
Are you sure you want to change the base?
Add helm chart for postgresql database #382
Conversation
5fc863f
to
6b41921
Compare
3d8cc64
to
5b8db2d
Compare
5b8db2d
to
a8fd852
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think the sealed secrets could just be secrets with randAlphaNum
as we don't need them outside the deployment at all
49269be
to
4efcbad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we set up metrics and have them scraped by prometheus?
charts/xchemlab/values.yaml
Outdated
@@ -22,44 +22,44 @@ chimp-chomp: | |||
compound-library: | |||
enabled: true | |||
database: | |||
host: postgres://postgresql-ha-pgpool | |||
user: postgres | |||
host: postgres://xchemlab-postgresql-ha-pgpool.xchemlab.svc.cluster.local |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to template this with the deployment name?
charts/xchemlab/values.yaml
Outdated
opa: | ||
url: http://{{ .Release.Name }}-opa-kube-mgmt:8181 | ||
|
||
compound-soaking: | ||
enabled: true | ||
database: | ||
host: postgres://postgresql-ha-pgpool | ||
user: postgres | ||
host: postgres://xchemlab-postgresql-ha-pgpool.xchemlab.svc.cluster.local |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to template this with the deployment name?
charts/xchemlab/values.yaml
Outdated
opa: | ||
url: http://{{ .Release.Name }}-opa-kube-mgmt:8181 | ||
|
||
crystal-library: | ||
enabled: true | ||
database: | ||
host: postgres://postgresql-ha-pgpool | ||
user: postgres | ||
host: postgres://xchemlab-postgresql-ha-pgpool.xchemlab.svc.cluster.local |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to template this with the deployment name?
charts/xchemlab/values.yaml
Outdated
opa: | ||
url: http://{{ .Release.Name }}-opa-kube-mgmt:8181 | ||
|
||
pin-packing: | ||
enabled: true | ||
database: | ||
host: postgres://postgresql-ha-pgpool | ||
user: postgres | ||
host: postgres://xchemlab-postgresql-ha-pgpool.xchemlab.svc.cluster.local |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to template this with the deployment name?
charts/xchemlab/values.yaml
Outdated
@@ -77,11 +77,11 @@ targeting: | |||
secretName: targeting-s3-secret | |||
secretKey: secret-access-key | |||
database: | |||
host: postgres://postgresql-ha-pgpool | |||
user: postgres | |||
host: postgres://xchemlab-postgresql-ha-pgpool.xchemlab.svc.cluster.local |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to template this with the deployment name?
charts/xchemlab/values.yaml
Outdated
db-init.sql: | | ||
SELECT 'CREATE DATABASE compound_library' OWNER xchemlab WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'compound_library')\gexec; | ||
SELECT 'CREATE DATABASE compound_soaking' OWNER xchemlab WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'compound_soaking')\gexec; | ||
SELECT 'CREATE DATABASE crystal_library' OWNER xchemlab WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'crystal_library')\gexec; | ||
SELECT 'CREATE DATABASE targeting' OWNER xchemlab WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'targeting')\gexec; | ||
SELECT 'CREATE DATABASE pin_packing' OWNER xchemlab WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'pin_packing')\gexec; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we able to move this to a configmap / secret somehow? Just to tidy up the values file
4efcbad
to
2674b0d
Compare
0e25a1f
to
f0e8807
Compare
No description provided.