Google Kubernetes Engine (GKE) is a managed, production-ready environment for deploying containerized applications. GKE makes it easy to deploy, update, and manage containerized applications and services. GKE isn’t just for stateless applications either; you can attach persistent storage, and even run a database in your cluster.
You should see the Cloud Shell console similar to this:
Start the GKE cluster
We will create a GKE cluster that meets the prerequisites for installing Robin Storage. The GKE cluster prerequisites are:
- Ubuntu OS image
- Minimum 4 vCPUs and 4GB memory per node
- The Cluster has access to GCP disks and storage APIs. If you are not sure, select “Allow full access to all Cloud APIs” while creating GKE cluster
The following command creates a 2-node GKE cluster in the “us-west1-a” region. We are using the machine type “n1-standard-4” to meet the vCPUs and memory requirement and Ubuntu OS image.
Run the below command in shell:
It may take a few minutes for the cluster to be created and ready to use. Once the cluster is ready you should be able to see it in your Google Cloud Console.
How to Install Robin Storage on GKE
Now let’s install Robin Storage to bring advanced data management capabilities to GKE. On your Google Cloud Console, click on the “Marketplace” tab on the left-hand side menu.
Search for Robin Storage in the marketplace and click on the Robin Storage app in the search results. Once on the Robin Storage page, click on the “Purchase Plan” button to enable Robin Storage on your Google Cloud Platform account.
On the “Purchase Plan” page, go to the bottom of the page and click on “Purchase”. The plan should activate and you should return to the Robin Storage page. This time, click on the “Configure” button.
On the resulting screen, select the recently created cluster, and type “YES” in the “Cluster Requirements” textbox, as we know our cluster meets the prerequisites. In the Storage disks input field, let’s set size=100. Click on “Deploy” to install Robin Storage on your GKE cluster.
It may take a few minutes to complete the deployment. Once the deployment is complete you should be taken to “Application Details” page where you can see the Robin Storage application.
Get started with Robin Storage
Once the installation is complete, you can get details about robin cluster by running following commands in the Cloud Shell.
The resulting output should have the connect-command to connect with Robin. If the “Connect_command” field has no value yet, it means Robin is still being installed in the background. Wait for a few minutes and try again.
Copy the command and run it to connect with Robin. After connecting to Robin container you can login as “admin” user. Default password is ‘Robin123’.
robin login admin
You can verify the installation by running
Let us setup Helm now. Robin has helper utilities to initialize Helm.
Before proceeding, let’s make sure all necessary workloads (pods) are running properly. Click on the “Workloads” tab on the left-hand panel, and wait for the status of all workloads to be shown as ”OK” with a green check next to them.
Once Robin Storage is deployed on GKE using Helm, you can deploy many different databases to bring advanced data management to your stateful workloads.
This concludes the Install Robin Storage on GKE tutorial. Also, here is a video if you prefer to view and follow the installation steps.