oss-aspen / 8Knot

Dash app in development to serve open source community visualizations using GitHub data from Augur. Hosted app: https://eightknot.osci.io
MIT License
47 stars 59 forks source link

Add ocp postgres #589

Closed JamesKunstle closed 6 months ago

JamesKunstle commented 6 months ago

defines postgres deployment + pvc + service as part of base deployment

will have to be merged after #588

JamesKunstle commented 6 months ago

@codekow would love your input here as well

codekow commented 6 months ago

@JamesKunstle

A few things to consider:

JamesKunstle commented 6 months ago

@JamesKunstle

A few things to consider:

  • You can reuse the secret for both DBs if you wanted
  • You'll need to update the kustomization.yaml to use the new resources
  • I like the idea of your application having the ability to detect a cache DB and if the cache isn't present, it runs without.
  1. the same secret for Redis and for Postgres? Yeah sure that'd be fine. That's easier to maintain
  2. okay, just did that
  3. that'd be nice in the future. right now, we have an inflexible relationship between the query and the analysis workers- an architectural defect from earlier on. In the future, a cache-less mode would be possible.