Helm values
The chart runs one StatefulSet of gateway pods per zone, each pod with a WAL volume on a regional persistent disk and a writer stream named after the pod. Most gateway settings become LOWTIDE_* environment variables; the gateway flags reference describes them in more detail. Install with Helm has a complete example.
Image and topology
Section titled “Image and topology”| Value | Default | Description |
|---|---|---|
nameOverride, fullnameOverride |
"" |
Standard Helm naming. Never change on a running installation. |
image.repository |
ghcr.io/example/lowtide |
Gateway and agent image. Replace with the image you received. |
image.tag |
"" |
Defaults to the chart’s app version. |
image.pullPolicy |
IfNotPresent |
|
imagePullSecrets |
[] |
|
zones |
[us-central1-a, us-central1-b] |
Zones to run gateway pods in, one StatefulSet <fullname>-<zone> each. A regional disk spans exactly two zones, so with the bundled StorageClass list exactly two. |
replicasPerZone |
1 |
Pods per zone. Scale with this, not with a HorizontalPodAutoscaler. Scaling down is not drain-aware (Scale down). |
zoneReplicas |
{} |
Per-zone override, for example {us-central1-b: 2}. |
zoneFailover |
{} |
Run a zone’s StatefulSet in another zone, for example {us-central1-a: us-central1-b}. Pods keep their names, volumes and streams. The target must be one of the disk’s two zones (Zone failure). |
rollout.pausedZones |
[] |
Zones whose pods don’t restart on helm upgrade until you remove them, for a canary zone (Upgrades). |
rollout.zoneByZone.enabled |
true |
Roll one zone at a time on helm upgrade and helm rollback: later zones wait until the zone before is ready (Upgrades). Needs a --timeout of at least 10 minutes. Off: all zones roll at once. |
rollout.zoneByZone.image |
registry.k8s.io/kubectl:v1.33.5 |
Image of the rollout hook Job. Only the kubectl binary is used. |
rollout.zoneByZone.timeoutSeconds |
600 |
How long the hook waits for each zone to roll and become available. |
rollout.zoneByZone.resources, nodeSelector, tolerations |
10m CPU, 32Mi | The hook Job’s pod. |
clusterDomain |
cluster.local |
Ports and TLS
Section titled “Ports and TLS”| Value | Default | Description |
|---|---|---|
ports.grpc |
8085 |
Pub/Sub API (gRPC and REST) in plaintext; also pod-to-pod traffic. |
ports.http |
9090 |
/metrics, /healthz, /readyz and the admin endpoints the agent uses. |
ports.tls |
8443 |
Pub/Sub API (gRPC and REST) over TLS, when tls.enabled. |
tls.enabled |
false |
Serve the TLS port. Required for clients that send credentials, and for gcp-iam. |
tls.secretName |
"" |
A kubernetes.io/tls Secret with tls.crt and tls.key. Renewals are picked up without a restart. |
tls.reloadMs |
30000 |
How often the certificate files are checked. |
tls.servicePort |
443 |
Port of the client Service that maps to the TLS port. |
Storage backends
Section titled “Storage backends”| Value | Default | Description |
|---|---|---|
meta.existingSecret |
lowtide-meta |
Secret holding the metadata database DSN. The database connection doesn’t use TLS yet, so use a private IP without enforced SSL, or the Cloud SQL or AlloyDB Auth Proxy as a sidecar with the DSN pointing at 127.0.0.1. Add ?connect_timeout=5&keepalives_idle=30&tcp_user_timeout=30000. |
meta.existingSecretKey |
url |
Key of the DSN in that Secret. |
meta.url |
"" |
Development only: the chart creates a Secret from this value when existingSecret is empty. |
blob.url |
"" |
Segment bucket, gs://bucket/prefix. Required. |
Gateway settings
Section titled “Gateway settings”| Value | Default | Description |
|---|---|---|
config.segmentIntervalMs |
1000 |
WAL rotation and upload window. Also bounds cross-zone delivery latency. |
config.leaseTtlMs |
15000 |
Shard lease time. Bounds how long a subscription waits after its pod dies. |
config.subIdleMs |
60000 |
How long a pod keeps its share of a subscription after its last local consumer leaves. |
config.crossZone |
"" |
fastest or lowest-cost: how a zone without consumers, or whose consumers fall behind, is read from the other zone. Empty means fastest. The label lowtide-cross-zone and a default set in the console override it. See Cross-zone delivery. |
config.peerReads |
"" |
From earlier versions, passed only when set: off, same-zone (means lowest-cost) or all (means fastest). |
config.tailCacheMb |
256 |
In-memory cache of recent messages. Messages not yet uploaded may use up to twice this before they are dropped from memory, so set the memory limit to at least twice this plus delivery buffers. |
config.maxPendingUploadMb |
8192 |
Refuse publishes with UNAVAILABLE while this much WAL waits for upload, so the disk can’t fill. Keep it well below the volume size. |
config.subscriptionShards |
8 |
Shards per new subscription. The label lowtide-shards on a subscription overrides it at creation. |
config.gcIntervalMs |
300000 |
Retention and cleanup pass, one pod at a time. |
config.minRetentionMs |
3600000 |
Shortest retention for topics nothing else retains. |
config.ackedGcGraceMs |
300000 |
Delete segments every subscription has acknowledged after this long. 0 keeps them for the retention period. |
config.orderingLanes |
64 |
Ordering-key lanes. 0 writes ordered messages on the pod that received them. |
config.pushMaxConcurrency |
400 |
Push requests in flight per push subscription and pod. The label lowtide-push-max-concurrency overrides it per subscription. |
config.bigqueryWriteMethod |
load |
load (load jobs) or insert-all (streaming inserts) for BigQuery subscriptions. |
config.bigqueryFlushMs |
120000 |
How often BigQuery batches are written. Each zone writes its own batches, so keep at least 120000 with load jobs, for the per-table quota. |
config.mirror.pubsubUrl |
"" |
Pub/Sub API the mirror publishes to. Empty: the regional endpoint of pubsubRegion, else auth.gcpIam.pubsubUrl. |
config.mirror.pubsubRegion |
"" |
Publish through https://REGION-pubsub.googleapis.com. Set it to the cluster’s region: Pub/Sub keeps ordering only for messages published in the same region. |
config.mirror.maxInflight |
32 |
Mirror publish requests in flight per topic and pod. |
config.mirror.batchDelayMs |
10 |
How long a mirror batch waits for more messages. |
config.mirror.parkRetryMs |
60000 |
Retry interval of a parked mirror. |
config.log |
info |
Log level, in tracing filter syntax, for example info,lowtide::sub=debug. |
config.logJson |
true |
JSON logs, for Cloud Logging. |
Authentication
Section titled “Authentication”| Value | Default | Description |
|---|---|---|
auth.methods |
[] |
Empty: off. [gcp-iam]: Cloud IAM. [static, google] or one of them: the lowtide policy. See Authentication modes. |
auth.gcpIam.pubsubUrl |
https://pubsub.googleapis.com |
Pub/Sub API for permission checks and shadows. |
auth.gcpIam.crmUrl |
https://cloudresourcemanager.googleapis.com |
Resource Manager API for project-level checks. |
auth.gcpIam.allowTtlMs |
300000 |
How long an allow is cached. A revoked grant can last this long. |
auth.gcpIam.denyTtlMs |
30000 |
How long a deny is cached. A new grant can take this long. |
auth.gcpIam.staleMs |
600000 |
Reuse allows that expired up to this long ago while IAM can’t be reached. |
auth.gcpIam.shadowReconcileMs |
600000 |
How often missing shadows are created. |
auth.tokensSecret |
"" |
static mode: Secret with key tokens, one principal token per line. |
auth.internalTokenSecret.name |
"" |
Secret with the shared pod-to-pod token. Required when authentication is on. Also protects the admin endpoints; the agent reads the same Secret. |
auth.internalTokenSecret.key |
token |
|
auth.policy.bindings |
[] |
lowtide policy: {principals, roles, resources} bindings. |
lowtide Cloud agent
Section titled “lowtide Cloud agent”| Value | Default | Description |
|---|---|---|
agent.enabled |
false |
Run the agent. It registers the cluster, sends a heartbeat every 30 seconds and usage every 5 minutes, outbound HTTPS only, and serves the licence to the gateways. |
agent.controlPlaneUrl |
https://api.lowtide.cloud |
lowtide Cloud’s agent API. |
agent.joinTokenSecret |
{name: lowtide-join-token, key: token} |
Secret with the one-time join token, created by the console’s commands or the Terraform module. Read only until the agent has registered. |
agent.neverReadableNames |
false |
Always send topic and subscription names as hashes, whatever the console’s setting. |
agent.migration.enabled |
true |
Run migration steps queued in the console. false: the agent never changes anything in lowtide or Pub/Sub. |
agent.workloadIdentity.gcpServiceAccount |
"" |
Google service account for migration steps (Workload Identity). Without it, steps that read or change Pub/Sub fail with a clear error. |
agent.stateVolume.size |
64Mi |
Volume for the agent’s credential, signing key and usage upload position. |
agent.stateVolume.storageClassName |
"" |
The cluster’s default. |
agent.port |
9091 |
In-cluster HTTP: the licence for the gateways, /healthz. |
agent.resources |
50m CPU, 64Mi request; 128Mi limit | |
agent.podLabels, podAnnotations, nodeSelector, tolerations, extraEnv |
empty |
Licence
Section titled “Licence”| Value | Default | Description |
|---|---|---|
licence.publicKeysConfigMap |
"" |
ConfigMap with the licence verification keys (JWKS). |
licence.publicKeysKey |
jwks.json |
|
licence.secretName |
"" |
Clusters without outbound access: a Secret holding the licence file, re-read every minute, instead of the agent. |
licence.secretKey |
licence.jws |
The licence never affects message traffic.
Extras
Section titled “Extras”| Value | Default | Description |
|---|---|---|
extraEnv, extraEnvFrom |
[] |
Extra environment for the gateway container. |
extraArgs |
[] |
Extra command-line flags. |
extraVolumes, extraVolumeMounts |
[] |
|
extraContainers |
[] |
Sidecars. |
initContainers |
[] |
Init containers. For a database proxy that must start before the gateway, use a native sidecar here with restartPolicy: Always. |
Identity
Section titled “Identity”| Value | Default | Description |
|---|---|---|
serviceAccount.create |
true |
Create the Kubernetes service account. |
serviceAccount.name |
"" |
|
serviceAccount.annotations |
{} |
|
serviceAccount.automountServiceAccountToken |
false |
|
workloadIdentity.gcpServiceAccount |
"" |
The gateway’s Google service account (Workload Identity). Needs object admin on the bucket. Adds the iam.gke.io/gcp-service-account annotation. Leave empty when IAM is granted to the Kubernetes service account directly. |
Storage
Section titled “Storage”| Value | Default | Description |
|---|---|---|
persistence.size |
100Gi |
WAL volume per pod. Size it for the longest upload outage to ride out: publish rate × outage length. Growing later: Grow the disks. |
persistence.storageClassName |
"" |
Defaults to the chart’s StorageClass. |
persistence.annotations |
{} |
|
persistence.mountPath |
/var/lib/lowtide |
|
persistence.retentionPolicy |
Retain when deleted and when scaled |
Keep Retain: a WAL may hold acknowledged messages that are not in Cloud Storage yet. |
storageClass.create |
true |
Create a regional-disk StorageClass. Set false and set persistence.storageClassName to use your own. |
storageClass.name |
"" |
Defaults to <fullname>-regional-pd. |
storageClass.type |
pd-balanced |
pd-balanced or pd-ssd. |
storageClass.allowedZones |
[] |
Zones the disk replicates across. Defaults to zones. |
storageClass.reclaimPolicy |
Retain |
|
storageClass.allowVolumeExpansion |
true |
|
storageClass.extraParameters |
{} |
For example disk-encryption-kms-key. |
Services
Section titled “Services”| Value | Default | Description |
|---|---|---|
service.type |
ClusterIP |
Client Service. |
service.annotations |
{} |
For example for an internal load balancer. |
service.trafficDistribution |
PreferClose |
Zone-local routing (Kubernetes 1.31 or later). |
service.topologyMode |
"" |
Legacy topology-aware routing. Takes precedence when set. |
headlessService.annotations |
{} |
| Value | Default | Description |
|---|---|---|
resources |
1 CPU, 2Gi request; 4Gi limit | Gateway container. See Sizing. |
podAnnotations, podLabels |
{} |
|
priorityClassName |
"" |
|
nodeSelector, tolerations |
empty | Pick node pools. |
affinity |
{} |
Extra pod affinity. Node affinity is generated from the zone. |
topologySpreadConstraints |
[] |
Defaults to spreading a zone’s pods across nodes. |
podManagementPolicy |
Parallel |
|
minReadySeconds |
10 |
|
terminationGracePeriodSeconds |
60 |
Time for shutdown: recording positions, ending streams, draining requests. |
preStopSleepSeconds |
10 |
Wait before shutdown starts, so the pod leaves the Service first. |
podSecurityContext, securityContext |
non-root (65532), read-only root, no capabilities, RuntimeDefault seccomp |
|
livenessProbe |
/healthz every 10 s, 6 failures |
Fails once the WAL has failed. |
readinessProbe |
/readyz every 2 s, 2 failures |
|
startupProbe |
{} |
Policies and monitoring
Section titled “Policies and monitoring”| Value | Default | Description |
|---|---|---|
podDisruptionBudget.enabled |
true |
|
podDisruptionBudget.maxUnavailable |
1 |
|
podMonitoring.enabled |
false |
GKE Managed Prometheus scraping. |
podMonitoring.interval, labels |
30s, {} |
|
serviceMonitor.enabled |
false |
Prometheus Operator scraping. |
serviceMonitor.interval, labels |
30s, {} |
|
networkPolicy.enabled |
false |
Render a NetworkPolicy. |
networkPolicy.grpcFrom |
[] |
Who may reach the plaintext port besides gateway pods. Empty: gateway pods only. Keep it narrow: plaintext clients can’t send credentials. |
networkPolicy.tlsFrom |
[] |
Who may reach the TLS port. Empty: anyone; clients authenticate there. |
networkPolicy.metricsFrom |
[] |
Who may scrape the metrics port. Empty: anyone. For Managed Prometheus: namespaceSelector: {matchLabels: {kubernetes.io/metadata.name: gmp-system}}. |