Add helm chart for postgresql database#382
Add helm chart for postgresql database#382iamvigneshwars wants to merge 4 commits intoDiamondLightSource:mainfrom
Conversation
5fc863f to
6b41921
Compare
3d8cc64 to
5b8db2d
Compare
5b8db2d to
a8fd852
Compare
garryod
left a comment
There was a problem hiding this comment.
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
garryod
left a comment
There was a problem hiding this comment.
Could we set up metrics and have them scraped by prometheus?
charts/xchemlab/values.yaml
Outdated
| 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.
Do we need to template this with the deployment name?
charts/xchemlab/values.yaml
Outdated
| 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.
Do we need to template this with the deployment name?
charts/xchemlab/values.yaml
Outdated
| 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.
Do we need to template this with the deployment name?
charts/xchemlab/values.yaml
Outdated
| 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.
Do we need to template this with the deployment name?
charts/xchemlab/values.yaml
Outdated
| 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.
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.
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.