Home / Docs / Charts / Mysql

MySQL

Production-ready MySQL deployment with support for standalone and source-replica replication architectures.

Key Features

  • Standalone and replication — Single instance or source-replica topology
  • Automatic initialization — Init scripts and custom configuration
  • Backup support — Configurable backup CronJobs
  • Metrics — Prometheus exporter with ServiceMonitor
  • Security — Non-root containers, network policies, TLS support
  • Persistent storage — Configurable PVCs with storage class selection

Installation

HTTPS repository:

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install my-mysql helmforge/mysql

OCI registry:

helm install my-mysql oci://ghcr.io/helmforgedev/helm/mysql

Standalone Example

# values.yaml
architecture: standalone

auth:
  rootPassword: "my-secret-password"
  database: myapp
  username: myuser
  password: "user-password"

primary:
  persistence:
    size: 20Gi

metrics:
  enabled: true
  serviceMonitor:
    enabled: true

Replication Example

architecture: replication

auth:
  rootPassword: "my-secret-password"
  database: myapp
  username: myuser
  password: "user-password"
  replicationPassword: "repl-password"

primary:
  persistence:
    size: 20Gi

secondary:
  replicaCount: 2
  persistence:
    size: 20Gi

Key Values

KeyDefaultDescription
architecturestandalonestandalone or replication
auth.rootPassword""MySQL root password
auth.database""Default database to create
auth.username""Default user to create
auth.password""Password for default user
primary.persistence.size8GiPrimary PVC size
secondary.replicaCount1Number of read replicas
metrics.enabledfalseEnable Prometheus exporter

More Information

See the source code and full values reference on GitHub.