Database
K8TRE Spec Statement: No statement provided.
Last updated: Unknown
Source: GitHub Discussion
Questions:
-
What should K8TRE Specification say about in-cluster DBs and what should it say about off-cluster DBs?
Databases should be attached resources, explicitly referenced. TRE administrators may use an externally provided database service, such as AWS RDS, but where applications can use an on-cluster database, they should consider using the CNPG operator to deploy an instance of Postgres DB, rather than using a different Postgres helm chart which introduces an additional dependency.
-
How prescriptive should the K8TRE Specification be in dictating how databases are deployed and managed on-cluster?
The specification should remain non-prescriptive, but it ought to encourage modern best practices for database management, such as using Kubernetes-native tools like database operators (e.g. the CloudNativePG operator), to align with a decoupled, microservices-oriented architecture.