Skip to content

GKE Cluster Basics


You will need up-to-date versions of the following tools installed -


Make sure you have initialized gloud by running gcloud init See this page for details.

Create a Cluster on GKE

Creating a kubernetes cluster on GKE is very well documented on this page. In this guide we will be creating a "regional" cluster of 6 nodes.

Step 1

By default GKE regional clusters are created in three zones within a region unless specified otherwise. Please note that the --num-nodes parameter specifies the number of nodes per zone, not the total number of nodes. This page lists the available GCP regions.

Run the following command to create a 6-node GKE cluster replacing <CLUSTER_NAME> and <REGION_NAME> with a cluster name and region name of your choice:

gcloud container clusters create <CLUSTER_NAME> \
    --region <REGION_NAME> \
    --num-nodes 2


A minimum of 4 nodes is required to support a Sawtooth network using the PBFT consensus plugin or a Besu network using IBFT consensus. However smaller clusters can be added to such an existing network

Step 2

Make a brew as this is going to take a few minutes.

Step 3

When the provisioning is complete, run the following command to generate a kubeconfig entry for your GKE cluster, replacing <CLUSTER_NAME> and <REGION_NAME> with the name and region of your cluster.

gcloud container clusters get-credentials <CLUSTER_NAME> --region <REGION_NAME>

Step 4

Run the following command to check your cluster's configuration which should return something akin to the following:

kubectl get svc

This should return something similar to this

kubernetes   ClusterIP   <none>        443/TCP   9m45s

Using your Google GKE Cluster

Now that you have created this cluster you can add it to the list of target clusters available to Sextant by following the instructions here.

Alternatively if you intend to install Sextant on this cluster then you can do so by following the instructions here.

Delete Google GKE cluster


Do not delete your GKE cluster if it is running Sextant or it is hosting any Sextant-managed deployments.

Assuming that your GKE cluster isn't running Sextant, then before deleting it, make sure that it isn't hosting any Sextant-managed deployments. If it is, and you still want to delete it, then:

  1. Undeploy and delete any active deployments running on it using Sextant.
  2. Delete any provisioned clusters in Sextant.

Run the following command to delete your GKE cluster replacing <CLUSTER_NAME> and <REGION_NAME> with the appropriate cluster and region name:

gcloud container clusters delete <CLUSTER_NAME> --region <REGION_NAME>

This will return confirmation of the delete operation:

the following clusters will be deleted.
- [cluster] in [region]

Do you want to continue (Y/n)?

If the cluster listed is correct, press Y and the delete operation will commence.


This operation may take some time to complete.