--- layout: default navsection: installguide title: Arvados on GKE ... {% comment %} Copyright (C) The Arvados Authors. All rights reserved. SPDX-License-Identifier: CC-BY-SA-3.0 {% endcomment %} This page documents setting up and running the "Arvados on Kubernetes":{{ site.baseurl }}/install/arvados-on-kubernetes.html @Helm@ chart on @Google Kubernetes Engine@ (GKE). h2. Prerequisites h3. Install tooling Install @gcloud@: * Follow the instructions at "https://cloud.google.com/sdk/downloads":https://cloud.google.com/sdk/downloads Install @kubectl@:
$ gcloud components install kubectl
Install @helm@: * Follow the instructions at "https://docs.helm.sh/using_helm/#installing-helm":https://docs.helm.sh/using_helm/#installing-helm h3. Create the GKE cluster This can be done via the "cloud console":https://console.cloud.google.com/kubernetes/ or via the command line:
$ gcloud container clusters create  --zone us-central1-a --machine-type n1-standard-2
It takes a few minutes for the cluster to be initialized. h3. Reserve a static IP Reserve a "static IP":https://console.cloud.google.com/networking/addresses in GCE. Make sure the IP is in the same region as your GKE cluster, and is of the "Regional" type. h3. Connect to the GKE cluster. Via the web: * Click the "Connect" button next to your "GKE cluster"https://console.cloud.google.com/kubernetes/. * Execute the "Command-line access" command on your development machine. Alternatively, use this command:
$ gcloud container clusters get-credentials  --zone us-central1-a --project 
Test the connection:
$ kubectl get nodes
Test @helm@ by running
$ helm ls
There should be no errors. The command will return nothing. h2(#git). Clone the repository Clone the repository and nagivate to the @arvados-k8s/charts/arvados@ directory:
$ git clone https://github.com/arvados/arvados-k8s.git
$ cd arvados-k8s/charts/arvados
h2(#Start). Start the Arvados cluster Next, determine the IP address that the Arvados cluster will use to expose its API, Workbench, etc. If you want this Arvados cluster to be reachable from places other than the local machine, the IP address will need to be routable as appropriate.
$ ./cert-gen.sh 
The @values.yaml@ file contains a number of variables that can be modified. At a minimum, review and/or modify the values for
  adminUserEmail
  adminUserPassword
  superUserSecret
  anonymousUserSecret
Now start the Arvados cluster:
$ helm install arvados . --set externalIP=
At this point, you can use kubectl to see the Arvados cluster boot:
$ kubectl get pods
$ kubectl get svc
After a few minutes, there shouldn't be any services listed with a 'Pending' external IP address. At that point you can access Arvados Workbench at the IP address specified * https://<IP ADDRESS> with the username and password specified in the @values.yaml@ file. Alternatively, use the Arvados cli tools or SDKs. First set the environment variables:
$ export ARVADOS_API_TOKEN=
$ export ARVADOS_API_HOST=:444
$ export ARVADOS_API_HOST_INSECURE=true
Test access with:
$ arv user current
h2(#reload). Reload If you make changes to the Helm chart (e.g. to @values.yaml@), you can reload Arvados with
$ helm upgrade arvados .
h2. Shut down
$ helm del arvados
$ gcloud container clusters delete  --zone us-central1-a