Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.md « terraform « _support - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cbd1f1ea011caaeab474ef9209bec5976abbdc3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# terraform for gitaly ha demo

## Creating a demo cluster

### 1. Install Google Cloud SDK

- For most platforms, including macOS, use the [official
   guide](https://cloud.google.com/sdk/docs/quickstarts)
- For Arch Linux, go to [this
   AUR](https://aur.archlinux.org/packages/google-cloud-sdk)

### 2. Install Terraform

On macOS with homebrew, use `brew install terraform`. For other
platforms see [the Terraform download
page](https://www.terraform.io/downloads.html).

### 3. Run the script

```
./create-demo-cluster
```

This will open a browser to sign into GCP if necessary. Terraform will
print a plan and ask you to confirm it before it creates anything in
GCP.

When the script is done, `apt-get install gitlab-ee` is still busy
running in the background on your new VM's.

One of the provisioned resources is the database, which can take up to 10
minutes to be created.

### 4. Use SSH to manually configure the hosts

Updating the config for all the demo cluster hosts is not yet
automated. Please follow the documentation at
https://docs.gitlab.com/ee/administration/gitaly/praefect.html.

To see the list of IP's for your machines, run:

```
./print-info
```

## Destroying a demo cluster

When you run the command below Terraform will print a plan of things
to destroy, that you then have to confirm (or abort with Ctrl-C).

Be careful! Double check how many nodes are being destroyed, and what
their names are.

```
./destroy-demo-cluster
```