dbgate

by Nimtechnology

Helm chartv0.1.8App 7.2.3Verified publisher

A Helm chart for DbGate - Database management client

About this chart

DbGate

DbGate is a fast, modern, open-source database client and SQL editor. It supports MySQL, PostgreSQL, SQL Server, MongoDB, Redis, SQLite, Oracle, and more. This chart deploys DbGate as a web application on Kubernetes.

Prerequisites

  • Kubernetes 1.25+
  • Helm 3.12+
  • A default StorageClass, or set persistence.storageClass explicitly
  • An Ingress controller when ingress.enabled=true

Install

helm repo add dbgate https://antiantiops.github.io/dbgate-helm-chart
helm repo update

helm upgrade --install dbgate dbgate/dbgate \
  --namespace dbgate --create-namespace

Configuration

Important values

ValueDefaultDescription
image.repositorydbgate/dbgateContainer image
image.tag5.5.5Image tag
service.typeClusterIPService type
service.port3000Service port
ingress.enabledfalseCreate an Ingress resource
ingress.className""IngressClass, e.g. nginx
persistence.enabledtruePersist DbGate data
persistence.size1GiPVC size
persistence.storageClass""StorageClass for PVC
resources.limits.cpu500mCPU limit
resources.limits.memory512MiMemory limit

With Ingress

# values-production.yaml
ingress:
  enabled: true
  className: nginx
  hosts:
    - host: dbgate.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: dbgate-tls
      hosts:
        - dbgate.example.com

persistence:
  storageClass: longhorn

Install with helm upgrade --install dbgate dbgate/dbgate -n dbgate -f values-production.yaml.

Without persistence

helm upgrade --install dbgate dbgate/dbgate \
  --set persistence.enabled=false

Environment variables

Pass database connection defaults or DbGate configuration via env:

env:
  - name: WEB_ROOT
    value: /dbgate

Persistence

ComponentDefaultPurpose
persistence1GiDbGate connections, queries, and settings (/root/.dbgate)

Accessing DbGate

After installation with default ClusterIP service:

kubectl port-forward svc/dbgate 3000:3000 -n dbgate
# Open http://localhost:3000

Uninstall

helm uninstall dbgate -n dbgate

Deploy dbgate with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dbgate 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 chartdbgate is pinned at v0.1.8 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