pghoard

by Wiremind

Helm chartv0.8.1App 1.0Verified publisher

pghoard

About this chart

References

  • https://github.com/aiven/pghoard
  • https://github.com/wiremind/docker-pghoard
  • https://hub.docker.com/r/wiremind/pghoard/

Deploy

In order to use pghoard Helm Chart, you need run several steps:

Users

Manually create a user for replication on your main database:

CREATE USER pghoard PASSWORD 'putyourpasswordhere' REPLICATION;

Where the password is the apssword defined in your custom values.yaml

Database

Manually create, if not already done, a database with the same name as the main user. It can be empty.

Create custom secret

Currently, you will need to create a custom secret. See Skypallet helm chart for how to do this.

Deploy pghoard with OpenTenant

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