Skip to content

Install with Helm

Use the Helm chart when you already run GKE and want to bring the database, bucket and identities yourself. If you would rather have all of it created for you, use the Terraform module, which wraps the same chart.

  • One StatefulSet of gateway pods per zone, each pod with a WAL volume on a regional persistent disk. The chart creates a regional-disk StorageClass.
  • A client Service with zone-local routing, a TLS port on 443 when TLS is on, and a headless Service for pod-to-pod traffic.
  • PodDisruptionBudgets, and optionally NetworkPolicy, PodMonitoring (GKE Managed Prometheus) or ServiceMonitor.
  • With agent.enabled, the lowtide agent with a small state volume.
What Notes
A GKE Standard cluster Nodes in both zones, Workload Identity on, Kubernetes 1.31 or later for zone-local routing, the persistent disk CSI driver.
PostgreSQL Cloud SQL for PostgreSQL or AlloyDB. lowtide’s database connection does not use TLS yet, so connect through the Cloud SQL or AlloyDB Auth Proxy as a sidecar, or over a private IP without enforced SSL.
A Cloud Storage bucket Regional, in the cluster’s region. Turn soft delete off: lowtide deletes segments often. Add a lifecycle rule that deletes objects older than your longest retention plus a margin (for example 38 days), as a backstop.
A Google service account for the gateway Bound to the chart’s Kubernetes service account through Workload Identity, with roles/storage.objectAdmin on the bucket and Cloud SQL client and instance user roles if you use IAM database login.
A TLS certificate A kubernetes.io/tls Secret whose names include the host clients use, for example from cert-manager. The gateway reloads it when it changes.
An internal token A Secret with a random token. Pods use it to authenticate to each other and the agent uses it for the gateways’ admin API. Required when authentication is on.
The image IMAGE_REPOSITORY:VERSION, from your invitation during the preview.

For Cloud IAM authorization, the gateway’s service account also needs the shadow role in each Pub/Sub project. See Cloud IAM and shadows.

Clusters → Create cluster → Run Terraform yourself, then choose the Helm tab. The console shows commands that store the one-time join token in a Secret, store the licence verification keys in a ConfigMap, fetch the chart for your version, and install it with the agent on. The join token works once and expires after 24 hours.

A starting point for production. Every value is described in the Helm values reference.

image:
repository: IMAGE_REPOSITORY
tag: VERSION
zones: [europe-west1-b, europe-west1-c]
replicasPerZone: 2
blob:
url: gs://acme-lowtide-segments/lowtide
meta:
# Secret with key "url", for example
# postgres://USER@127.0.0.1:5432/lowtide?connect_timeout=5&keepalives_idle=30&tcp_user_timeout=30000
existingSecret: lowtide-meta
workloadIdentity:
gcpServiceAccount: lowtide-gw@acme-lowtide-prod.iam.gserviceaccount.com
tls:
enabled: true
secretName: lowtide-tls
auth:
methods: [gcp-iam]
internalTokenSecret:
name: lowtide-internal-token
key: token
# The Cloud SQL Auth Proxy as a native sidecar, started before the gateway.
initContainers:
- name: cloud-sql-proxy
image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.14.1
restartPolicy: Always
args:
- --private-ip
- --auto-iam-authn
- --port=5432
- --exit-zero-on-sigterm
- acme-lowtide-prod:europe-west1:lowtide-orders-prod
resources:
requests: { cpu: "3", memory: 6Gi }
limits: { memory: 8Gi }
persistence:
size: 200Gi
config:
maxPendingUploadMb: 16384
networkPolicy:
enabled: true
podMonitoring:
enabled: true

Add the agent lines the console shows (agent.enabled, agent.controlPlaneUrl, agent.joinTokenSecret, licence.publicKeysConfigMap). For console-driven migrations, also set agent.workloadIdentity.gcpServiceAccount to a Google service account for the agent (Permissions).

Add timeouts to the database DSN as shown. The connection pool has none of its own, so a network that silently drops packets could otherwise make calls hang.

Terminal window
helm upgrade --install lowtide ./lowtide \
--namespace lowtide -f values.yaml

Use the chart path and agent flags from the console’s commands. The cluster shows Healthy in the console once the agent has registered.

  • Never rename the release, fullnameOverride or a zone. Pod names are writer stream names and are tied to their WAL disks. New names mean new streams, and data on the old disks that was not uploaded yet would be stranded.
  • Scale with replicasPerZone, not with a HorizontalPodAutoscaler. Pods are not interchangeable.
  • Keep persistence.retentionPolicy at Retain. A WAL disk can hold acknowledged messages that are not in Cloud Storage yet.
  • Upgrade with --timeout 20m. The chart rolls one zone at a time and Helm waits for the last zone (Upgrades and scaling).

Connect an existing installation to lowtide Cloud

Section titled “Connect an existing installation to lowtide Cloud”

If you already run the chart without the agent, the console’s Agent only tab has commands that add only the agent with helm upgrade --reuse-values. Gateway settings are kept.