Install in Google Kubernetes Engine (GKE)
Learn how to install Harness Self-Managed Enterprise Edition in GCP.
This topic explains how to use Helm to install the Harness Self-Managed Enterprise Edition in Google Cloud Platform (GCP).
For Helm installation instructions, go to Helm installation or the Harness Helm chart readme.
Prerequisites
This topic assumes you have experience with GCP, such as setting up projects, namespaces, and clusters.
In addition to a Harness account, you need the following:
Access to Helm charts
An external static IP address
To install in GCP manually, you first reserve your static IP, then install Harness Self-Managed Enterprise Edition.
Reserve an external static IP
To reserve an external static IP in GCP, do the following:
Go to your GCP project.
Select VPC network. The VPC networks page opens.
In the left nav, select IP addresses. The IP addresses page opens.
Select Reserve External Static IP Address, then select the following.
Network Service Tier: Premium.
IP Version: IPv4.
Type: Regional.
Select Reserve.
Install Harness Self-Managed Enterprise Edition in GCP
Create a new cluster or use an existing one.
Create a new namespace:
Set your Kubernetes context to the GCP project you are using.
Run the following
kubectl create ns <namespace name>
Download the latest charts from the Harness Helm chart repo.
Extract the
*.tgzfile.Open the
override-demo.yamlfile in a file editor.Add your external static IP address in the following fields.
loadbalancerURL: http://xx.xx.xx.xxloadBalancerIP: xx.xx.xx.xxSet the following fields.
loadbalancerURL: http://xx.xx.xx.xx ingress: # --- Enable Nginx ingress controller gateway enabled: true annotations: {} loadBalancerIP: xx.xx.xx.xx className: "harness" loadBalancerEnabled: true useSelfSignedCert: false ingressGatewayServiceUrl: '' hosts: - ""Search for "nginx:", and set
create:totrue.nginx: create: trueSearch for "defaultbackend:", and set
create:totrue.defaultbackend: create: trueSave the file and exit.
Run the following from your terminal.
helm install <YOUR_RELEASE_NAME> <path to Harness directory> -n <YOUR_NAMESPACE_NAME> -f override.demo.yamlfor example:
helm install test-release harness/ -n smp-test -f harness/override-demo.yamlAfter the installation is complete, paste the
loadbalancerURLin your browser's address bar, and then sign in to the Harness UI.Complete to the post-install next steps.
To install in GKE using the gcloud CLI, you first create your test cluster, then install Harness Self-Managed Enterprise Edition.
Create a test cluster
To create your test cluster in GKE using the gcloud CLI, do the following:
Configure the gcloud CLI with your Google Cloud account.
Run the following GKE cluster configuration, modifying the
< >enclosed values with those from your own environment.Create a Static IP in the same zone as your GKE cluster.
Retrieve and note your IP address.
Get a Kubernetes config for your new cluster.
Install Harness Self-Managed Enterprise Edition in GKE
Create a namespace for your deployment.
Retrieve and extract the latest Harness Helm charts. The harness charts will look like
harness-<version_number>.Open the
harness/override-demo.yamlfile in any editor, and modify the following values.KeyValueglobal.ingress.enabledtrueglobal.loadbalancerURL"https://<YOUR_IP_ADDRESS>"global.ingress.hosts""global.ingress.loadBalancerIP<YOUR_IP_ADDRESS>global.ingress.loadBalancerEnabledtrueplatform.bootstrap.networking.defaultbackend.createtrueplatform.bootstrap.networking.nginx.createtrueplatform.bootstrap.networking.nginx.loadBalancerEnabledtrueplatform.bootstrap.networking.nginx.loadBalancerIP<YOUR_IP_ADDRESS>Install the Helm chart.
Navigate to the sign up UI at
https://<YOUR_IP_ADDRESS>/auth/#/signupto create your admin user.Complete to the post-install next steps.
Deploy the Harness modules you want to use. For more information, go to Deploy Harness modules.
Add your Harness license. For more information, go to Add a Harness license.
Configure SMTP to allow for additional user invitations. For more information, go to Add SMTP configuration.
Last updated
Was this helpful?