pocketbase-ha
Helm chartv0.0.3App 0.0.6
A highly available leaderless PocketBase cluster powered by go-ha database/sql driver
About this chart
PocketBase HA Helm Chart
PocketBase HA is an highly available leaderless PocketBase cluster powered by go-ha database/sql driver.
Features
- High Availability: Run multiple PocketBase instances in a leaderless cluster.
- Replication: Synchronize data across nodes using NATS.
- Embedded or External NATS: Choose between an embedded NATS server or an external one for replication.
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/pocketbase-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
| Parameter | Description | Default |
|---|---|---|
nats.config | NATS config file | see values.yaml |
nats.stream | NATS stream name | pb |
replicaCount | Number of instances | 3 |
relication.url | URL to connect to external NATS for replication | `` |
storage.size | Storage size | 10Gi |
storage.className | Storage class name | standard |
stream.replicas | Number of stream replicas | 1 |
Deploy pocketbase-ha with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pocketbase-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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartpocketbase-ha is pinned at v0.0.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