database
Helm chartv0.21.3App 0.1.0
OSC database service Helm Chart
About this chart
database
OSC database service Helm Chart
Maintainers
| Name | Url | |
|---|---|---|
| treydock |
Requirements
| Repository | Name | Version |
|---|---|---|
| https://charts.bitnami.com/bitnami | mariadb | 21.0.8 |
| https://charts.bitnami.com/bitnami | postgresql | 16.7.27 |
| https://charts.bitnami.com/bitnami | redis | 23.2.12 |
| https://osc.github.io/osc-helm-charts/ | osc-common | 0.16.0 |
| oci://registry-1.docker.io/bitnamicharts | mongodb | 18.5.0 |
Usage
Allow access using Ingress
Enable Ingress access:
global:
database:
allowIngress: true
Allow access using Port Forwarding
Allow groups to do port Forwarding
global:
portforwardGroups:
- group1
- group2
MariaDB
Enable MariaDB:
mariadb:
enable: true
auth:
rootPassword: secret
database: name
username: name
password: secret
MongoDB
global:
dataDir:
base: /fs/ess/<PROJECT>
subPath: myapp
mongodb:
enable: true
PostgreSQL
Enable PostgreSQL:
postgresql:
enable: true
auth:
postgresPassword: secret
database: name
username: name
password: secret
Redis
Enable Redis
redis:
enable: true
auth:
password: secret
Values
| Key | Description | Default |
|---|---|---|
| global.oscServiceAccount | The service account used by OSC deployments. Also pulled from global.env..serviceAccount | "" |
| global.environment | The deployment's OSC environment | "production" |
| global.nodeSelectorRole | The nodeSelector role | "webservices" |
| global.imagePullSecret.create | Create the image pull secret | true |
| global.imagePullSecret.name | image pull secret name | "osc-registry" |
| global.imagePullSecret.registry | OSC registry address | "docker-registry.osc.edu" |
| global.imagePullSecret.password | The image pull secret password for database images | required |
| global.networkPolicy.create | Create the network policy | false |
| global.networkPolicy.podSelector | Labels for NetworkPolicy podSelector. Defaults to "osc.common.selectorLabels" | nil |
| global.networkPolicy.ingressAllowedPods | Labels of pods allowed to Ingress from the same namespace | [] |
| global.storageClass | The persistent storage class | "webservices-nfs-client" |
| global.fileset | The fileset for local-ess or local-scratch storage | "" |
| global.imageRegistry | Global value to pass down to database charts to set registry to pull images from | "docker-registry.osc.edu" |
| global.imagePullSecrets | The OSC image pull secret name to use to pull images | ["osc-registry"] |
| global.debugGroups | Groups that debug pods | [] |
| global.maintenanceGroups | Groups that can perform maintenance operations | [] |
| global.portforwardGroups | Groups that are allowed to perform port forwarding | [] |
| global.webservicesDeploy.create | Create webservices deployment rolebinding | true |
| global.alert.receiver | The alert receiver name | "" |
| global.backup.keep | Number of backups to keep | 7 |
| global.postgresql.auth.postgresPassword | The postgres user admin password | nil |
| global.postgresql.auth.database | The database name | nil |
| global.postgresql.auth.username | The database username | nil |
| global.postgresql.auth.password | The database password | nil |
| global.mongodb.auth.rootPassword | The MongoDB root password | nil |
| imagePullSecret.enable | Manage the image pull secret from osc-common. Disable if this chart is used as a subchart. | true |
| mariadb.enable | Enable MariaDB subchart by setting to true | false |
| mariadb.image.repository | The OSC registry path to mariadb replicated image. This value should not need to be changed. | "webservices/mariadb" |
| mariadb.image.tag | The version of MariaDB image. This version of must built by this repo | "11.8.3-debian-12-r0" |
| mariadb.primary.resources | Set limits for primary MariaDB pod | {"limits":{"cpu":4,"memory":"4Gi"},"requests":{"cpu":1,"memory":"256Mi"}} |
| mariadb.volumePermissions.image.repository | The OSC registry path to replicated image. This value should not need to be changed. | "kubernetes/bitnami/os-shell" |
| mariadb.volumePermissions.image.tag | The version of replicated image. This version of must replicated to OSC registry | "12-debian-12-r51" |
| mariadb.metrics.image.repository | The OSC registry path to replicated image. This value should not need to be changed. | "kubernetes/bitnami/mysqld-exporter" |
| mariadb.metrics.image.tag | The version of replicated image. This version of must replicated to OSC registry | "0.17.2-debian-12-r16" |
| mongodb.enable | Enable MongoDB subchart by setting to true | false |
| mongodb.auth.usernames | The MongoDB usernames | [] |
| mongodb.auth.passwords | The MongoDB passwords | [] |
| mongodb.auth.databases | The MongoDB databases | [] |
| mongodb.image.repository | The OSC registry path to mongodb replicated image. This value should not need to be changed. | "kubernetes/bitnami/mongodb" |
| mongodb.image.tag | The version of MongoDB image. This tag should be replicated into the OSC registry | "8.0.13-debian-12-r0" |
| mongodb.resources | Set limits for the MongoDB pod | {"limits":{"cpu":4,"memory":"4Gi"},"requests":{"cpu":1,"memory":"256Mi"}} |
| mongodb.backup.cronjob.schedule | MongoDB cron backup schedule | "@daily" |
| mongodb.metrics.image.repository | The OSC registry path to replicated image. This value should not need to be changed. | "kubernetes/bitnami/mongodb-exporter" |
| mongodb.metrics.image.tag | The version of replicated image. This version of must replicated to OSC registry | "0.47.0-debian-12-r1" |
| mongodb.metrics.password | MongoDB metrics password | nil |
| postgresql.enable | Enable PostgreSQL subchart by setting to true | false |
| postgresql.image.repository | The OSC registry path to postgresql replicated image. This value should not need to be changed. | "webservices/postgresql" |
| postgresql.image.tag | The version of MariaDB image. This version of must built by this repo | "17.6.0-debian-12-r4" |
| postgresql.auth.postgresPassword | The postgres user admin password | required |
| postgresql.auth.database | The database name | required |
| postgresql.auth.username | The database username | required |
| postgresql.auth.password | The database password | required |
| postgresql.primary.resources | Set limits for primary PostgreSQL pod | {"limits":{"cpu":"4","memory":"4Gi"},"requests":{"cpu":"1","memory":"256Mi"}} |
| postgresql.backup.cronjob.schedule | PostgreSQL cron backup schedule | "@daily" |
| postgresql.backup.cronjob.storage | {} | |
| postgresql.volumePermissions.image.repository | The OSC registry path to replicated image. This value should not need to be changed. | "kubernetes/bitnami/os-shell" |
| postgresql.volumePermissions.image.tag | The version of replicated image. This version of must replicated to OSC registry | "12-debian-12-r51" |
| postgresql.metrics.enabled | true | |
| postgresql.metrics.image.repository | The OSC registry path to replicated image. This value should not need to be changed. | "kubernetes/bitnami/postgres-exporter" |
| postgresql.metrics.image.tag | The version of replicated image. This version of must replicated to OSC registry | "0.17.1-debian-12-r16" |
| redis.enable | Enable Redis subchart by setting to true | false |
| redis.image.repository | The OSC registry path to redis replicated image. This value should not need to be changed. | "kubernetes/bitnami/redis" |
| redis.image.tag | The version of Redis image. This version of must built by this repo | "8.2.1-debian-12-r0" |
| redis.auth.password | The Redis password | required |
| redis.architecture | "standalone" | |
| redis.master.resources | Set limits for master Redis pod | {"limits":{"cpu":"4","memory":"4Gi"},"requests":{"cpu":"1","memory":"256Mi"}} |
| redis.metrics.enabled | true | |
| redis.metrics.image.repository | The OSC registry path to replicated image. This value should not need to be changed. | "kubernetes/bitnami/redis-exporter" |
| redis.metrics.image.tag | The version of replicated image. This version of must replicated to OSC registry | "1.76.0-debian-12-r0" |
| oscCommon.enable | Enable the osc-common dependency | true |
Deploy database with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has database on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartdatabase is pinned at v0.21.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply