Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

GCP (GKE)

Run Zerve's compute and storage in your own Google Cloud project, on your existing GKE cluster.

This guide sets up bring your own cloud on Google Cloud. Your code runs on your existing GKE cluster, and your data is stored in your own Cloud Storage bucket.

What you'll set up

Resource
Purpose

A Cloud Storage bucket

Stores block outputs, variables and files

An Artifact Registry repository

Stores environment images

An application service account

Represents Zerve in your project. Zerve uses service account impersonation to get short-lived credentials, for example to schedule compute jobs or manage storage.

An execution service account

The identity your code runs as. Grant it access to other Google Cloud resources your code needs.

A build service account

The identity environment builds run as

Zerve's Helm chart, on your GKE cluster

Sets up the permissions Zerve needs in your cluster

Your GKE cluster doesn't have to be in the same project as the other resources.

Before you start

Your GKE cluster needs:

  • Kubernetes version 1.28 or higher

  • A DNS-based control plane endpoint

You'll also need the gcloud CLI and helm, and permission to create service accounts, buckets and repositories in your project.

1. Set some variables

These are used throughout the guide:

Set these too, for your GKE cluster's project and node service account:

Point the gcloud CLI at the project for Zerve's resources:

2. Create the service accounts

Allow Zerve to impersonate the application service account:

3. Create the bucket

Allow the Zerve app to read and write files in the bucket from the browser:

Give each service account access to the parts of the bucket it needs:

4. Create the image repository

5. Set up logging

6. Connect your GKE cluster

Let the cluster's Kubernetes service accounts act as Zerve's execution and build service accounts:

Let the cluster's nodes pull images from the repository:

Let Zerve connect to your GKE cluster:

Install Zerve's Helm chart, which sets up the permissions Zerve needs in the cluster:

7. Connect Zerve to your project

In Zerve, go to Settings → Self-Hosting and fill in:

Field
Value

Project ID

The project for Zerve's resources, such as flying-banana-412312-r9

Region

The region you used, such as europe-west2

Bucket Name

The bucket you created

Service Account

The application service account's email, such as zerve-app-sa@flying-banana-412312-r9.iam.gserviceaccount.com

Docker Repository

The repository's address, such as europe-west2-docker.pkg.dev/flying-banana-412312-r9/zerve

Under Compute options, select Kubernetes and fill in:

Field
Value

Namespace

zerve

Endpoint

Your GKE cluster's DNS-based control plane endpoint, such as https://gke-723981544496.europe-west2.gke.goog

Service Account Token

Leave empty

Certificate Authority Data

Leave empty

To find your cluster's endpoint:

Save the settings. Your organization's code now runs on your GKE cluster.

Last updated

Was this helpful?