-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
97 lines (85 loc) · 2.16 KB
/
variables.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
variable "project_id" {
description = "The project ID to host the cluster in"
}
variable "region" {
description = "The region to host the cluster in"
default = "us-central1"
}
variable "zone" {
description = "The zone to host the cluster in (required if is a zonal cluster)"
default = "us-central1-a"
}
variable "network_name" {
description = "The name of the network"
default = "gke-cluster-network"
}
variable "gke_cluster_name" {
description = "The name of the cluster"
default = "gke-cheap-cluster"
}
variable "num_nodes" {
description = "The number of cluster nodes"
default = 1
}
variable "disk_size" {
description = "The disk size of the cluster nodes"
default = 20
}
variable "node_pools" {
default = {
ingress = {
initial_node_count = 1
min_node_count = 1
max_node_count = 1
spot = true
auto_repair = true
auto_upgrade = true
disk_size_gb = 10
disk_type = "pd-standard"
tags = [
"ingress"
]
taints = [
{
key = "ingress"
value = true
effect = "NO_EXECUTE"
}
]
}
shared = {
initial_node_count = 1
min_node_count = 1
max_node_count = 5
spot = true
auto_repair = true
auto_upgrade = true
disk_size_gb = 20
disk_type = "pd-standard"
taints = []
tags = [
"shared"
]
}
}
}
variable "default_machine_type" {
description = "The default machine type for the cluster nodes"
default = "e2-small"
}
variable "cluster_subnetwork_cidr_range" {
description = "The CIDR range for the cluster subnetwork"
default = "10.0.0.0/24"
}
variable "master_ipv4_cidr_block" {
description = "The CIDR range for the master nodes"
default = "10.1.0.0/28"
}
variable "cluster_ipv4_cidr_block" {
description = "The CIDR range for the cluster pods"
default = "10.2.0.0/18"
}
variable "services_ipv4_cidr_block" {
description = "The CIDR range for the cluster services"
default = "10.3.0.0/18"
}