Deploying Zalenium in Google Cloud using Kubernetes and Helm

Executing automated tests on Selenium Grid is a logical solution when we think of running parallel concurrent UI tests using Selenium. In this article we will see how we can easily spin up a Selenium Grid in Google Cloud Platform.
Though I would be using Google Cloud for this article, the method and the commands can be easily used for any cloud/local set up.

Before we start, lets quickly understand the steps we will be following today.

Why Zalenium?

Enough talk.. Let’s get started.

Step 1: Go to your Google Cloud Platform Console and search for GKE (Google Kubernetes Engine). If you do not have a GCP account you can create one by following these steps.

Step 2: Create a standard [Cluster] . I chose the following parameters. You can choose data that suits you.
a. Cluster Name : zalenium
b. Zone :
c. Number of Nodes :1
d. Machine Type : 2 vCPUs 8.00 GB

Create cluster from GKE

Step 3: Connect to the cluster by clicking on the [Run in Cloud Shell] button

Step 4: Once you are inside the shell, execute the following very simple commands :

kubectl create namespace zalenium

I chose my namespace as zalenium. You can give a name of your choice.

helm repo add zalenium-github

This will add the Zalenium Helm chart repository. zalenium-github is the name of this repo (you may call it whatever you want).

helm install my-release --namespace zalenium zalenium-github/zalenium --set hub.serviceType="LoadBalancer"

my-release is the Helm's release name.

Now execute the following command to get the External IP which can be used to access the Zalenium console from the browser.

kubectl get service my-release-zalenium --namespace="zalenium"

If you notice carefully, the IP that I get is If I hit this IP followed by /grid/console in a browser , I should be able to view the Se Grid.

And Voila! Your Selenium Grid (Zalenium) is up and ready.
So the following can be used as the Hub URL in all your automated UI tests.

To view the execution videos, you can navigate to the Zalenium Dashboard using the following URL:

Happy Testing!!

The commands I have used above are mostly from this GitHub project :



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ashish Ghosh

Test Automation Architect @ING Bank. Tech enthusiast. Innovation champion.