pocketbase-ha

by walterwanderley

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

ParameterDescriptionDefault
nats.configNATS config filesee values.yaml
nats.streamNATS stream namepb
replicaCountNumber of instances3
relication.urlURL to connect to external NATS for replication``
storage.sizeStorage size10Gi
storage.classNameStorage class namestandard
stream.replicasNumber of stream replicas1

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpocketbase-ha is pinned at v0.0.3 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