Skip to content

lowtide sets it up

With this option, lowtide’s provisioner applies the lowtide Terraform module in your project for you. You grant it a fixed set of roles with one block of commands, and you can remove them once the cluster is healthy.

The provisioner is a service account in lowtide’s project. It holds no role there. It can act only in the projects where you grant it roles.

Clusters → Create cluster → lowtide sets it up. Enter:

  • the cluster name,
  • the install project, region and two zones,
  • production or non-production, and the expected peak publish rate (the console picks the size),
  • the Pub/Sub projects whose topics and subscriptions the cluster serves (at least one),
  • optionally the endpoint host and whether to create snapshot shadows (Cloud IAM and shadows).

Nothing is created in your project yet.

The cluster page shows a block of commands. Run them as someone who can change IAM in the install project and in each Pub/Sub project, for example in Cloud Shell (Open Cloud Shell, paste, press Enter). They:

  1. enable the Service Usage API in the install project,
  2. create the cluster’s shadow role in each Pub/Sub project, with fixed permissions,
  3. grant the provisioner the roles listed under Show every role and why.

In the install project the provisioner gets roles to create the network, GKE cluster, Cloud SQL instance, bucket and service accounts. Its Project IAM Admin role carries an IAM condition, so it can only grant the installation’s own service accounts a short list of roles. In each Pub/Sub project it gets only Project IAM Admin, limited to granting the gateway the shadow role and Pub/Sub Publisher. It can’t read or publish messages. Permissions lists every role and why.

Select Check access. The console tests every permission as the provisioner, in each project, and lists what is missing. For anything missing it shows the commands to fix it. Grants made through groups or inherited from folders count.

A grant can take a minute or two to reach every Google service. If a check fails right after you ran the commands, wait a minute and check again.

Select Start setup. The provisioner runs as a job and reports each step:

Step What happens
APIs Enables the APIs the installation uses. APIs are never disabled later.
State bucket Creates <project>-lowtide-tfstate in the install project for the Terraform state. It is versioned, uses uniform access and blocks public access.
Init Prepares Terraform with the lowtide module.
Apply Creates the network, GKE cluster, Cloud SQL instance, bucket, service accounts, TLS certificate and the Helm release. This is the long step.
Connect Waits for the agent to register with lowtide Cloud.

A first setup takes 20 to 30 minutes, most of it for GKE and Cloud SQL. A production cluster’s highly available Cloud SQL instance takes longest. You can leave the page; the run keeps going.

The log of each run is on the cluster’s Setup tab. Secrets and Terraform’s sensitive values are removed from it.

The run stops and says why in plain words: a quota, billing, an organization policy, an API that is not enabled yet, a missing permission, a resource that already exists. Fix the cause and select Retry. A retry runs the same setup again; Terraform continues from what already exists.

Common causes:

  • Quota. Regional persistent disks count twice against SSD_TOTAL_GB in the region. A small non-production cluster needs about 600 GB including node boot disks. New projects often have 500 GB. Request more in IAM & Admin → Quotas.
  • Organization policy. Policies that block external IPs on nodes are fine (nodes are private). Policies that restrict service account creation, resource locations or CMEK can stop the apply.

Once the cluster is healthy, open the cluster’s Setup tab and run the commands under Remove access. They remove each role from the provisioner. The cluster keeps running.

To upgrade or delete the cluster from the console later, grant the access again (Show the grant commands). You can also upgrade with Terraform yourself, from the same module and the state in your bucket.

When a new version is available, the cluster page shows it. Upgrade applies the module again with the new version. The gateways roll one pod at a time and keep serving. The provisioner needs its access for this. See Upgrades and scaling.

Delete cluster removes everything the provisioner created: the GKE cluster, the Cloud SQL instance with the metadata, the segment bucket with every message it holds, the network and the service accounts. The state bucket goes last. See Pause and delete.

In gs://<project>-lowtide-tfstate, in your install project, never in lowtide’s. It holds the installation’s TLS keys and tokens, so keep access to it narrow.