postgrest

by Das Meta

Helm chartv0.1.0App 13.0.8

PostgREST deployment built on the DasMeta base chart

About this chart

PostgREST

PostgREST exposes the governed analytics schema through a REST API. This chart deploys PostgREST only; it does not provision PostgreSQL, roles, grants, schema migrations, DNS, ingress controller, or runtime secrets.

Prerequisites

  • A PostgreSQL analytics database with a dedicated API role and least-privilege grants.
  • A Kubernetes Secret with PostgREST configuration, including PGRST_DB_URI, PGRST_DB_SCHEMAS, PGRST_DB_ANON_ROLE, and PGRST_JWT_SECRET when JWT authentication is enabled.
  • An ingress controller and DNS record if the API is exposed externally.

Install

helm repo add dasmeta https://dasmeta.github.io/helm
helm upgrade --install postgrest dasmeta/postgrest \
  --namespace analytics --create-namespace \
  --version 0.1.0 \
  -f examples/postgrest/minimal.yaml

The referenced Secret is created by the platform secret-management flow. Keep database credentials and JWT keys out of Helm values.

Key values

All application values are nested under base because this chart depends on dasmeta/base.

KeyPurpose
base.envFromReferences the Secret containing PGRST_* runtime settings.
base.ingressEnables and configures API exposure.
base.resourcesConfigures PostgREST resource requests and limits.
base.fullnameOverrideProvides a stable internal service name.

Validate locally

From the repository root:

helm template postgrest charts/postgrest -f examples/postgrest/minimal.yaml

Deploy postgrest with OpenTenant

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