Deploy to your own GCP cluster


Walhall is designed to integrate with your existing toolchain. By default, you can deploy to a Kubernetes cluster on Google Cloud Platform (GCP) managed by Walhall. However, you can also choose to deploy to your own GCP cluster. This page explains how.


Prepare your cluster

We have created a bash script that prepares your cluster to support Walhall app deployments. It uses kubectl to install NGINX Ingress Controller and cert-manager in your cluster with the respective namespaces, and it returns the IP of the load balancer.

  1. Install kubectl.
  2. Make sure it’s configured to communicate with your cluster.
  3. Run this script on your local machine:
#!/usr/bin/env bash

# Walhall K8s cluster preparation script.
# Make sure you have kubectl installed, and that it's configured to connect to your cluster.

# Installs NGINX Ingress Controller to the cluster (AWS has a specific setup yaml file).
# NOTE: If your Kubernetes version is older than 1.14, you must change to on line 217 of mandatory.yaml.
kubectl apply -f
kubectl apply -f

# Gets load balancer IP address.
LOADBALANCER_IP=$(kubectl get service -n ingress-nginx -o jsonpath="{.items[?('ingress-nginx')].status.loadBalancer.ingress[0].ip}")

# Creates a namespace to run cert-manager in.
kubectl create namespace cert-manager
# Installs the CustomResourceDefinitions and cert-manager itself.
kubectl apply -f --validate=false

echo -e "Load balancer IP: $LOADBALANCER_IP"

Connect account to Walhall

Now that your cluster is ready, you must connect your GCP account to Walhall.

  1. Log in to Walhall.
  2. Click the Profile icon in the top right.
    Screenshot: Profile icon
  3. Click Account Settings.
  4. On the Account Settings screen, click on your organization.
  5. Under Hosting Providers, click Google Cloud Platform.
  6. Enter a name for the account in the Hosting provider account name field.
  7. Paste your service account key (in JSON format) in the respective field.
  8. Click Authorize.

Walhall will authorize with your GCP account and populate the list of clusters from the provided service account.

Deploy your app to your GCP cluster

The last step is to change the cluster where your app will deploy.

  1. Go to your app.
  2. Click Create draft.
  3. Under Environment cluster, click Change. Screenshot: Change cluster
  4. In the modal window, find the GKE cluster where you want to deploy and click Set as current.
  5. Click Save.

Once you click Deploy, Walhall will deploy your app to the chosen cluster as a workload. If you chose to expose your modules with public URLs, then the app will be exposed via the ingress to the load balancer URL with a * certificate.

Free trial limitations

The following limitations apply to the free trial of the Humanitec platform:

  • Both user access management and source code management are handled through GitHub.
  • You may create no more than 20 apps, with no more than 3 environments each.
    • If you deploy your app to a cluster managed by Humanitec, then each deployed module will have a lifespan of 1 day.
  • You may only create development environments with the free trial.
  • The free trial does not include the role-based access control model. Each member of an organization in Walhall has full access to all applications for that organization and can delete and edit environments and applications.
  • Your app must implement Walhall’s CI/CD pipeline, i.e., using a Drone file.
  • For ingress, all deployed modules must use the * certificate.