-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
197 lines (171 loc) · 4.79 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
variable "project_name" {
default = "addoptify"
}
variable "vpc-name" {
default = "addoptify-vpc-network"
}
variable "subnet-1" {
default = "addoptify-subnetwork-1"
}
variable "sub-1-cidr-range" {
default = "192.168.0.0/20"
}
variable "subnet-2" {
default = "addoptify-subnetwork-2"
}
variable "sub-2-cidr-range" {
default = "172.50.0.0/16"
}
variable "subnet-3" {
default = "addoptify-subnetwork-3"
}
variable "sub-3-cidr-range" {
default = "172.70.0.0/16"
}
variable "range-name-1" {
default = "addoptify-secondary-range-update1"
}
variable "private-cidr-1-range" {
default = "192.168.10.0/24"
}
variable "range-name-2" {
default = "addoptify-secondary-range-update2"
}
variable "private-cidr-2-range" {
default = "192.168.11.0/24"
}
variable "range-name-3" {
default = "addoptify-secondary-range-update3"
}
variable "private-cidr-3-range" {
default = "192.168.12.0/24"
}
#################################################################
variable "location_zone" {
type = string
default = "europe-west2-a"
description = "defining zone"
}
variable "network" {
type = string
default = "default"
}
variable "subnetwork" {
type = string
default = "default"
}
variable "cluster_version" {
type = string
default = "1.17.14-gke.1600"
}
variable "cluster_name" {
type = string
default = "addoptify-teamcity-cluster"
}
variable "initial_node_count" {
type = number
default = 1
}
variable "initial_node_count_agent" {
type = number
default = 1
}
variable "max_node_count" {
type = number
default = 3
description = "Maximum number of nodes in the NodePool. Must be >= min_node_count."
}
variable "min_node_count" {
type = number
default = 3
description = "Minimum number of nodes in the NodePool. Must be >=0 and <= max_node_count."
}
variable "node_machine_type" {
type = string
default = "e2-standard-2"
description = "The name of a Google Compute Engine machine type. Defaults to n1-standard-4. To create a custom machine type, value should be set as specified here."
}
variable "os_image_type" {
type = string
default = "Ubuntu"
description = "Image Type Of Os Setting to Ubuntu by default"
}
variable "node_disk_size_gb" {
type = number
default = 20
description = "Size of disk on worker nodes."
}
variable "node_disk_type" {
type = string
default = "pd-standard"
description = "Type of disk o worker nodes."
}
variable "cluster_master_username" {
type = string
default = ""
}
variable "cluster_master_password" {
type = string
default = ""
}
variable "logging_service" {
type = string
default = "logging.googleapis.com/kubernetes"
}
variable "monitoring_service" {
type = string
default = "monitoring.googleapis.com/kubernetes"
}
variable "oauth_scopes" {
type = list(string)
default = [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/sqlservice.admin",
]
description = "The set of Google API scopes to be made available on all of the node VMs under the 'default' service account. These can be either FQDNs, or scope aliases. The following scopes are necessary to ensure the correct functioning of the cluster:"
}
variable "master_authorized_networks_config" {
type = list(object({ cidr_block = string, display_name = string }))
description = "List of master authorized networks. If none are provided, disallow external access (except the cluster node IPs, which GKE automatically whitelists)."
default = [
{
cidr_block = "10.154.0.0/20"
display_name = "all-for-dev"
}
]
}
variable "node_tags" {
description = "(Optional) Tags for nodes"
type = list(string)
default = []
}
variable "http_load_balancing" {
description = "(Optional) The status of the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster. set true to disable."
type = bool
default = false
}
variable "preemptible" {
description = "Enable or Disable node pool preemptible instances"
type = bool
default = true
}
variable "node_pool_name" {
default = "teamcity-server"
}
variable "node_pool_name_second" {
default = "teamcity-agent-1"
}
variable "node_pool_name_third" {
default = "teamcity-agent-2"
}
variable "node_pool_name_fourth" {
default = "teamcity-agent-3"
}
variable "node_machine_type_agent" {
type = string
default = "e2-medium"
description = "The name of a Google Compute Engine machine type. Defaults to n1-standard-4. To create a custom machine type, value should be set as specified here."
}