-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
240 lines (190 loc) · 6.53 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
variable "user_name" {
description = "User Name"
default = "app"
}
################################### Variable Section #########################
variable "region" {
description = "Region details"
default = "us-central1"
}
variable "env" {
description = "Environment Details or cluster name- dev,stage,test,prod,etc"
default = "test"
}
variable "kube_automation_folder" {
description = "Folder location in the ansible machine where kube configurations are stored"
default = "/home/app/kube_automation"
}
variable "kubespray_repo_url" {
description = "Kubespray repo URL hosted in the github (Note: HTTPS url to be copied with credentails)"
default = "https://github.com/kubernetes-sigs/kubespray.git"
}
variable "gcp_project_id" {
description = "GCP project_id name"
default = ""
}
# TF-UPGRADE-TODO: Block type was not recognized, so this block and its contents were not automatically upgraded.
######################## Kube Master Node Details #############
variable "kube_master_machine_type" {
description = "Machine Type, if not provided by default n1-standard-1 will be considered"
default = "n1-standard-1"
}
variable "kube_master_source_image" {
description = "OS image name"
default = "centos-6-v20190729"
}
variable "kube_master_disk_size_gb" {
description = "Total disk size allocated, by default 100GB"
default="100"
}
variable "kube_master_disk_type" {
description = "Disk type, pd-standard or pd-ssd"
default = "pd-standard"
}
variable "kube_master_network_interface" {
description = "Network Interface details"
default = ""
}
variable "kube_master_subnetwork" {
description = "Subnetwork details"
default = ""
}
variable "kube_master_mode" {
description = "Instance Mode"
default = "READ_WRITE"
}
variable "kube_master_svca_email" {
description = "Service Account Email"
default = ""
}
variable "kube_master_svca_scopes" {
description = "Service Account Scope"
default = ["https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring.write","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append"]
}
variable kube_master_target_size {
description = "Number of kubernetes masters"
default = 2
}
############### ETCD node
variable "kube_etcd_machine_type" {
description = "etcd Machine Type, if not provided by default n1-standard-1 will be considered"
default = "n1-standard-1"
}
variable "kube_etcd_source_image" {
description = "OS image name"
default = "centos-6-v20190729"
}
variable "kube_etcd_disk_size_gb" {
description = "Disk size, by default 100GB"
default="100"
}
variable "kube_etcd_disk_type" {
description = "Disk type, pd-standard or pd-ssd"
default="pd-standard"
}
variable "kube_etcd_network_interface" {
description = "Network interface details"
default = ""
}
variable "kube_etcd_subnetwork" {
description = "Subnetwork details"
default = ""
}
variable "kube_etcd_mode" {
description = "Instance Mode"
default = "READ_WRITE"
}
variable "kube_etcd_svca_scopes" {
description = "Service Account Scopes list"
default = ["https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring.write","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append"]
}
variable "kube_etcd_svca_email" {
description = "Service Account Email"
default = ""
}
variable "kube_etcd_target_size" {
description = "Number of etcd nodes"
default = "3"
}
################# Kube minions details ###########
variable "kube_minion_machine_type" {
description = "Minion Machine Type, if not provided by default n1-standard-1 will be considered"
default = "n1-standard-1"
}
variable "kube_minion_source_image" {
description = "OS image name"
default = "centos-6-v20190729"
}
variable "kube_minion_disk_size_gb" {
description = "Disk size, by default 100GB"
default ="100"
}
variable "kube_minion_disk_type" {
description = "Disk type, pd-standard or pd-ssd"
default = "pd-standard"
}
variable "kube_minion_network_interface" {
description = "Network interface details"
default = ""
}
variable "kube_minion_subnetwork" {
description = "Subnetwork details"
default = ""
}
variable "kube_minion_mode" {
description = "Instance Mode"
default = "READ_WRITE"
}
variable "kube_minion_svca_scopes" {
description = "Service Account Scopes List"
default = ["https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring.write","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append"]
}
variable "kube_minion_svca_email" {
description = "Service Account Email"
default = ""
}
variable "kube_minion_target_size" {
description = "Number of worker nodes/minions"
default = "2"
}
##################### Ansible Machine Details #########
variable "kube_ansible_machine_type" {
description = "Ansible Machine Type, if not provided by default n1-standard-1 will be considered"
default = "n1-standard-1"
}
variable "kube_ansible_source_image" {
description = "OS image name"
default = "centos-6-v20190729"
}
variable "kube_ansible_disk_size_gb" {
description = "Disk size, by default 100GB"
default = "100"
}
variable "kube_ansible_disk_type" {
description = "Disk type, pd-standard or pd-ssd"
default = "pd-standard"
}
variable "kube_ansible_network_interface" {
description = "Network interface details"
default = ""
}
variable "kube_ansible_subnetwork" {
description = "Subnetwork details"
default = ""
}
variable "kube_ansible_mode" {
description = "Instance Mode"
default = "READ_WRITE"
}
variable "kube_ansible_svca_scopes" {
description = "Service Account Scopes List"
default = ["https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring.write","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append"]
}
variable "kube_ansible_svca_email" {
description = "Service Account Email"
default = ""
}
variable "kube_ansible_target_size" {
description = "Number of kubespray-ansible instaces"
default = "1"
}