Helm chartv0.1.5App 0.0.14

HA, a highly available leaderless SQLite cluster powered by embedded NATS JetStream server

About this chart

Ha Helm Chart

HA is an highly available leaderless SQLite cluster powered by embedded NATS JetStream server

Features

  • 🔌 Connect via HTTP API, PostgreSQL Wire Protocol, or MySQL Wire Protocol
  • 🔁 Replicate data using embedded or external NATS server
  • 📝 Create live local read/write replicas with go-ha database/sql driver
  • 📚 Create live local read replicas with ha-sync SQLite extension
  • 🔄 Supports Change Data Capture (CDC)
  • ⚙️ Configure custom strategies for resolving replication data conflicts
  • 📖 Full documentation: https://litesql.github.io/ha/

Get Repo Info

helm repo add litesql https://litesql.github.io/helm-charts
helm repo update

See helm repo for command documentation.

Installing the Chart

To install the chart with the release name my-release:

helm install my-release litesql/ha

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

ParameterDescriptionDefault
db.dsnDataSource Namefile:/data/ha.db?_journal=WAL&_timeout=5000&_sync=NORMAL
db.concurrent_queriesNumber of concurrent queries50
db.extensionsList of SQLite extensions to load``
log_levelLog level (info, warn, error, debug)info
nats.enabledEnable/disable embedded NATS servertrue
nats.logsShow embedded NATS logsfalse
nats.userEmbedded NATS username``
nats.passEmbedded NATS password``
nats.configOverride default NATS configsee values.yaml
pgwire.enabledEnable/disable Postgres Wire servertrue
pgwire.userPostgreSQL Wire Porocol usernameha
pgwire.passPostgreSQL Wire Porocol passwordha
pgwire.certPostgreSQL Wire Porocol certificate``
pgwire.keyPostgreSQL Wire Porocol certificate key``
mysql.enabledEnable/disable MySQL Wire servertrue
mysql.portMySQL Wire Protocol port3306
mysql.userMySQL Wire Protocol usernameha
mysql.passMySQL Wire Protocol passwordha
replicaCountNumber of instances3
relication.max_ageReplication stream max age24h
relication.streamReplication stream nameha_replication
relication.timeoutReplication publisher timeout15s
relication.urlURL to connect to external NATS for replication``
storage.sizeStorage size10Gi
storage.classNameStorage class namestandard
stream.replicasNumber of stream replicas1

Deploy ha with OpenTenant

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