-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
224 lines (194 loc) · 5.1 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
variable "cluster_default_workers_subnets" {
default = []
description = "Default worker subnets"
type = list(string)
}
variable "cluster_default_workers_asg_max_size" {
default = 5
description = "Default worker asg max size"
type = number
}
variable "cluster_default_workers_asg_desired_capacity" {
default = 1
description = "Desired worker asg size"
type = number
}
variable "cluster_default_workers_instance_types" {
default = ["m5.large"]
description = "Default worker subnets"
type = list(string)
}
variable "cluster_default_workers_enabled" {
default = true
description = "Default worker subnets"
type = bool
}
variable "loadbalancer_enabled" {
default = false
type = bool
}
variable "loadbalancer_subnets" {
default = []
type = list(string)
}
variable "loadbalancer_listeners" {
description = "List of loadbalancer listeners and node port (https and http will be enabled automatically when enabling the ingress controller)"
default = []
type = list(object({
port = number
name = string
cidr = list(string)
nodePort = number
protocol = string
ingress = bool
}))
}
variable "prometheus_helm_values" {
default = {}
}
variable "loki_helm_values" {
default = {}
}
variable "thanos" {
type = object({
bucket = string
region = string
access_key = string
secret_key = string
})
default = { bucket = "", region = "", access_key = "", secret_key = "" }
}
variable "thanos_enabled" {
default = true
type = bool
}
variable "route53_zones" {
default = []
type = list(string)
description = "List of route53 zones the cluster should manage."
}
variable "slack_webhook" {
default = ""
}
variable "metrics_server_enable" {
default = true
description = "Enable or Disable metrics-server"
type = bool
}
variable "cilium_enable" {
default = false
description = "Enable or Disable cilium"
type = bool
}
variable "prometheus_enable" {
default = true
description = "Enable or Disable prometheus"
type = bool
}
variable "loki_enable" {
default = true
description = "Enable or Disable loki"
type = bool
}
variable "kube_monkey_enable" {
default = true
description = "Enable or Disable kube-monkey"
type = bool
}
variable "aws_node_termination_handler_enable" {
default = true
description = "Enable or Disable AWS Node Termination handler"
type = bool
}
variable "cluster_autoscaler_enable" {
default = true
description = "Enable or Disable Cluster Autoscaler"
type = bool
}
variable "cluster_scheduled_shutdown_enabled" {
default = false
description = "Schedule worker nodes shutdown outside of business hours."
type = bool
}
variable "cluster_scheduled_shutdown_start" {
default = "0 17 * * *"
description = "When should the scheduled shutdown start"
type = string
}
variable "cluster_scheduled_shutdown_end" {
default = "0 6 * * 1-5"
description = "When should the schedules shutdown end"
type = string
}
variable "external_dns_enable" {
default = true
description = "Enable or Disable External-dns"
type = bool
}
variable "cert_manager_enable" {
default = true
description = "Enable or Disable cert-manager"
type = bool
}
variable "cert_manager_email" {
description = "Email address to associate with issued ssl certificates"
type = string
}
variable "cert_manager_ingress_class" {
default = ""
type = string
description = "Cert manager ingress class"
}
variable "ingress_controller_ingress_enable" {
default = true
type = bool
description = "Enable or disable preinstalled ingress controller"
}
variable "ingress_controller_ingress_class" {
default = ""
type = string
description = "Ingress controller class"
}
variable "ingress_controller_ingress_flavour" {
default = "nginx"
type = string
/*
TODO: Add when fully supports
validation {
condition = can(regex("^(nginx)$", var.ingress_controller_ingress_flavour))
}
*/
description = "Ingress controller class"
}
variable "ingress_controller_https_nodePort" {
default = 32443
type = number
}
variable "ingress_controller_ingress_https_cidr" {
default = ["0.0.0.0/0"]
type = list(string)
}
variable "ingress_controller_https_port" {
default = 443
type = number
}
variable "ingress_controller_http_port" {
default = 80
type = number
}
variable "ingress_controller_ingress_http_cidr" {
default = ["0.0.0.0/0"]
type = list(string)
}
variable "ingress_controller_http_nodePort" {
default = 32080
type = number
}
variable "spinnaker_context_prefix" {
default = ""
}
variable "spinnaker_enabled" {
default = false
type = bool
description = "Enable or disable spinnaker service account"
}