3 navsection: installguide
7 Copyright (C) The Arvados Authors. All rights reserved.
9 SPDX-License-Identifier: CC-BY-SA-3.0
12 This page documents setting up and running the "Arvados on Kubernetes":/install/arvados-on-kubernetes.html @Helm@ chart on @Google Kubernetes Engine@ (GKE).
20 * Follow the instructions at "https://cloud.google.com/sdk/downloads":https://cloud.google.com/sdk/downloads
25 $ gcloud components install kubectl
30 * Follow the instructions at "https://docs.helm.sh/using_helm/#installing-helm":https://docs.helm.sh/using_helm/#installing-helm
32 h3. Create the GKE cluster
34 This can be done via the "cloud console":https://console.cloud.google.com/kubernetes/ or via the command line:
37 $ gcloud container clusters create <CLUSTERNAME> --zone us-central1-a --machine-type n1-standard-2 --cluster-version 1.15
40 It takes a few minutes for the cluster to be initialized.
42 h3. Reserve a static IP
44 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.
46 h3. Connect to the GKE cluster.
49 * Click the "Connect" button next to your "GKE cluster"https://console.cloud.google.com/kubernetes/.
50 * Execute the "Command-line access" command on your development machine.
52 Alternatively, use this command:
55 $ gcloud container clusters get-credentials <CLUSTERNAME> --zone us-central1-a --project <YOUR-PROJECT>
64 Test @helm@ by running
70 There should be no errors. The command will return nothing.
72 h2(#git). Clone the repository
74 Clone the repository and nagivate to the @arvados-k8s/charts/arvados@ directory:
77 $ git clone https://github.com/arvados/arvados-k8s.git
78 $ cd arvados-k8s/charts/arvados
81 h2(#Start). Start the Arvados cluster
83 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.
86 $ ./cert-gen.sh <IP ADDRESS>
89 The @values.yaml@ file contains a number of variables that can be modified. At a minimum, review and/or modify the values for
98 Now start the Arvados cluster:
101 $ helm install arvados . --set externalIP=<IP ADDRESS>
104 At this point, you can use kubectl to see the Arvados cluster boot:
111 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
113 * https://<IP ADDRESS>
115 with the username and password specified in the @values.yaml@ file.
117 Alternatively, use the Arvados cli tools or SDKs. First set the environment variables:
120 $ export ARVADOS_API_TOKEN=<superUserSecret from values.yaml>
121 $ export ARVADOS_API_HOST=<STATIC IP>:444
122 $ export ARVADOS_API_HOST_INSECURE=true
133 If you make changes to the Helm chart (e.g. to @values.yaml@), you can reload Arvados with
136 $ helm upgrade arvados .
146 $ gcloud container clusters delete <CLUSTERNAME> --zone us-central1-a