Wallaroo Community: A Quick Setup Guide for Google Cloud Kubernetes Environment

September 19, 2022

Wallaroo’s purpose-built platform has been designed to work seamlessly with your existing ecosystem, whether using tools from Microsoft, Amazon, or Google (Getting the most from Google Vertex). This also allows us to offer a quick and easy way to set up your Kubernetes environment. Below we’ll cover the prerequisites and steps involved with installing Wallaroo Community on Google Cloud Platform (GCP) for your Kubernetes environment.

Prerequisites for GCP before Starting

Make sure you meet the following prerequisites before getting started:

  • A Google Cloud account
  • A Wallaroo Community license file
  • Enabled Google Kubernetes Engine (GKE)
  • Enabled Google Compute Engine (GCE)
  • Gcloud “CLI” or “init” installed and running on your local system
  • Kubectl and kots installed

Please Note: The following information has been validated only as of 9/19/2022 and the recorded procedures in this blog may not reflect current practices. If you have any issues executing these procedures with similar results, please visit our documentation site for our most recent code and suggestions.

Installing GCP for your Kubernetes Environment

For this setup, we’ll have the main pool, postgres, and engine pools with one node for each. The machine types are the most suitable for the system and can be altered to your requirements.

Step 1: Creating a Network

We start with creating a network for Wallaroo Community network.Using the gcloud compute networks create command, enter:

gcloud compute networks create wallaroo-community-network --bgp-routing-mode regional --subnet-mode custom

Next, we verify it by the command:

gcloud compute networks list

Step 2: Creating a Wallaroo Cluster

To create the cluster, you need to specify the cluster name, node locations, region, machine type, network created, and subnetwork. Starting with the following command and adding your unique information will be displayed as follows:

gcloud container clusters create wallaroo-ce \
--region us-central1 \
--node-locations us-central-f \
--machine-type e2-standard-8 \
--network wallaroo-community-network \
--create-subnetwork name=wallaroo-subnet-1 \
--enable-ip-alias

Step 3: Setting Up the Nodepools

Next we set up four nodepools: main pool, postgres, engine, and engine-lb. You will need to state the virtual machine size, nodepool names, and the cluster for them each.

For postgres and main pool, we will use the following machine type command that will give us 8 CPU cores and 16 Gigabytes of RAM:

VM_SIZE=n2-standard-8

For engine and engine-lb, the “VM_SIZE=c2-standard-8” machine type is used to focus purely on computational needs.

Step 4: Retrieving the Kubernetes Credentials

Using the cluster name and region, we can now retrieve the credentials with the command:

gcloud container clusters get-credentials wallaroo-ce --region us-central1

Now we can verify and make sure your Kubernetes cluster is ready. With the command below, it will show you all the different nodes in the pool:

kubectl get nodes

Step 5: Installing into your Kubernetes Environment

Lastly, create a namespace where Wallaroo Community is installed to help install it in your Kubernetes environment. The command for creating the namespace will look like the following:

kubectl create namespace wallaroo

Next, enter the following command to install it into your Kubernetes environment:

kubectl kots install wallaroo/ce --namespace wallaroo

With these steps done properly, you’ll have successfully installed Wallaroo Community for GCP on your Kubernetes environment. If you require further assistance or to directly copy the codes, please visit our documentation site.