-
Notifications
You must be signed in to change notification settings - Fork 5
Databases
See Application Templates for a list of supported databases.
The database can be configured in the application's values.yaml located in applications/<your-application>/deploy/values.yaml.
Example
harness:
...
database:
auto: true
type: mongoAvailable Attributes
auto: If true, db will be automatically deployed in the cluster
type: Specifies which DB technology to use, allowed values: mongo, postgres, neo4j
size: Size of the persistent volume that the database container mounts, default is set to 1Gi
Per default, database backups are disabled. However, you can overwrite backups by overwriting the values-template.yaml, as described in Extend CloudHarness.
Example: deployment-configuration/values-template.yaml
backup:
active: trueYou can find additional configuration fields for backups to overwrite in the generated deployment/helm/values.yaml once you deploy your applications.
Backups are defined for mongo and postgres database in form of a K8s CronJob that creates a dump of the database and stores it in a different persistent volume on the same cluster.
This is done periodically according to a configurable schedule, per default once a day.
mongodump is used to create a gzipped archive file of the complete database.
Further reading: MongoDB archiving & compression, MongoDB Backup methods, mongodump
pg_dumpall is used to create for each database a gzipped script.
Further reading: pg_dumpall docs
Not yet supported!