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.
What the chart deploys
Section titled “What the chart deploys”- 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 you provide
Section titled “What you provide”| 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.
1. Create the cluster in the console
Section titled “1. Create the cluster in the console”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.
2. Write your values
Section titled “2. Write your values”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: 200Giconfig: maxPendingUploadMb: 16384
networkPolicy: enabled: truepodMonitoring: enabled: trueAdd 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.
3. Install
Section titled “3. Install”helm upgrade --install lowtide ./lowtide \ --namespace lowtide -f values.yamlUse the chart path and agent flags from the console’s commands. The cluster shows Healthy in the console once the agent has registered.
Rules for a running installation
Section titled “Rules for a running installation”- Never rename the release,
fullnameOverrideor 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.retentionPolicyatRetain. 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.