-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.tf
71 lines (56 loc) · 1.66 KB
/
main.tf
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
provider "google" {
project = "benchmark-project" # project id, not the name
region = "us-central" # the region
credentials = file("credentials.json") # your service account credentials
}
resource "google_container_cluster" "my_cluster" {
name = "es-os-benchmarks"
location = "us-central1-a"
remove_default_node_pool = true
initial_node_count = 1
}
resource "google_container_node_pool" "elasticsearch_nodes_32cpu" {
name = "elasticsearch-nodepool-32"
cluster = google_container_cluster.my_cluster.id
node_count = 3
node_config {
machine_type = "e2-standard-32"
disk_size_gb = 25
}
}
resource "google_container_node_pool" "kibana_nodes_2cpu" {
name = "elasticsearch-nodepool-2"
cluster = google_container_cluster.my_cluster.id
node_count = 1
node_config {
machine_type = "e2-medium"
disk_size_gb = 10
}
}
resource "google_container_node_pool" "opensearch_nodes_32cpu" {
name = "opensearch-nodepool-32"
cluster = google_container_cluster.my_cluster.id
node_count = 3
node_config {
machine_type = "e2-standard-32"
disk_size_gb = 25
}
}
resource "google_container_node_pool" "dashboards_nodes_2cpu" {
name = "dashboards-nodepool-2"
cluster = google_container_cluster.my_cluster.id
node_count = 1
node_config {
machine_type = "e2-medium"
disk_size_gb = 10
}
}
resource "google_container_node_pool" "rally_nodes" {
name = "rally-nodes"
cluster = google_container_cluster.my_cluster.id
node_count = 2
node_config {
machine_type = "e2-standard-4"
disk_size_gb = 10
}
}