db-operator

by db-operator

Helm chartv4.1.0App 2.47.0

This operator lets you manage databases in a Kubernetes native way, even if they are not deployed to Kubernetes

About this chart

db-operator

This operator lets you manage databases in a Kubernetes native way, even if they are not deployed to Kubernetes

Homepage: https://github.com/db-operator

Maintainers

NameEmailUrl
Nikolai Rodionov[email protected]https://allanger.xyz

Source Code

Requirements

Kubernetes: >= 1.34-prerelease

Values

KeyTypeDefaultDescription
nameOverridestring""
clusterDomainstring"cluster.local"
image.registrystring"ghcr.io"
image.repositorystring"db-operator/db-operator"
image.tagstring""
image.pullPolicystring"Always"
metadata.labelsobject{}
metadata.annotationsobject{}
crds.installbooltrue
crds.keepbooltrue
crds.annotationsobject{}
controller.logLevelstring"info"
controller.extraArgslist[]
controller.service.annotationsobject{}
controller.service.typestring"ClusterIP"
controller.service.portint8080
controller.serviceAccount.namestring""
controller.serviceAccount.createbooltrue
controller.rbac.createbooltrue
controller.config.backup.activeDeadlineSecondsint600
controller.config.backup.nodeSelectorobject{}
controller.config.backup.postgres.imagestring"ghcr.io/db-operator/pgdump-rclone:0.1.1"
controller.config.backup.mysql.imagestring"ghcr.io/db-operator/mydump-rclone:0.1.1"
controller.config.backup.resources.requests.memorystring"64Mi"
controller.config.backup.resources.requests.cpufloat0.2
controller.config.monitoring.promPushGatewaystring""
controller.args.reconcileIntervalstring"60s"
controller.args.watchNamespacesstring""
controller.args.checkForChangesboolfalse
controller.serviceMonitor.enabledboolfalse
webhook.enabledbooltrue
webhook.logLevelstring"info"
webhook.extraArgslist[]
webhook.podLabelsobject{}
webhook.rbac.createbooltrue
webhook.serviceAccount.namestring""
webhook.serviceAccount.createbooltrue
webhook.service.ipFamilyPolicystring""
webhook.names.mutatingstring"db-operator-mutating-webhook-configuration"
webhook.names.validatingstring"db-operator-validating-webhook-configuration"
webhook.certificate.createbooltrue------------------------------------------
webhook.certificate.namestring"db-operator-webhook"
webhook.certificate.secretNamestring"db-operator-webhook-cert"
webhook.certificate.issuer.createbooltrue
webhook.certificate.issuer.namestring"db-operator-issuer"
webhook.certificate.issuer.kindstring"Issuer"---------------------------------------
podSecurityContextobject{"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}Configure the security context for the operator pods
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]}}Configure the security context for the operator container
hostUsersbooltrue
resourcesobject{}
nodeSelectorobject{}
annotationsobject{}
podLabelsobject{}
affinityobject{}
tolerationslist[]
secrets.gsqlobject{}
serviceMonitor.enabledboolfalse

Deploy db-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has db-operator 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdb-operator is pinned at v4.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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