forked from sailthru/terraform-kubernetes-ambassador
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
221 lines (181 loc) · 5.21 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
variable "name" {
description = "Pod name, used to set the name"
default = "ambassador"
}
variable "namespace_create" {
description = "Create the namespace, must set a unique namespace_name"
default = false
}
variable "namespace_name" {
description = "Kubernetes namespace name"
default = "default"
}
variable "ambassador_image" {
default = "quay.io/datawire/ambassador"
description = "Ambassador_image Image"
}
variable "ambassador_image_tag" {
default = "1.6.0"
description = "Ambassador_image image tag"
}
variable "cluster_role_name" {
description = "Set cluster rolne name, defaults to name"
default = ""
}
variable "image_pull_policy" {
description = "Image pull policy"
default = "IfNotPresent"
}
variable "image_pull_secrets" {
description = "Image pull secrets"
default = []
type = list(string)
}
variable "daemon_set" {
default = false
description = "If true Create a daemonSet. By default Deployment controller will be created"
}
variable "volumes" {
description = "Volumes for the ambassador service"
default = []
type = list(string)
}
variable "volume_mounts" {
description = "Volume mounts for the ambassador service"
default = []
type = list(string)
}
variable "resources_requests_cpu" {
description = "CPU requests"
default = "200m"
}
variable "resources_requests_memory" {
description = "memory requests"
default = "500Mi"
}
variable "resources_limits_cpu" {
description = "CPU limit"
default = "1"
}
variable "resources_limits_memory" {
description = "memory limit"
default = "1Gi"
}
variable "rbac_create" {
default = true
description = "If true, create and use RBAC resources"
}
variable "service_account_create" {
default = true
description = "If true, create a new service account"
}
variable "service_account_name" {
default = ""
description = "Service account to be used"
}
variable "ambassador_namespace_name" {
description = "Set the AMBASSADOR_NAMESPACE environment variable"
default = "metadata.namespace"
}
variable "ambassador_debug" {
description = "Set the AMBASSADOR_DEBUG environment variable"
default = false
}
variable "ambassador_id" {
default = "default"
description = "Set the identifier of the Ambassador instance"
}
variable "loadbalancer_service_enable" {
description = "Enable the loadbalancer service"
default = true
}
variable "loadbalance_service_target_ports" {
description = "Sets the name, target_port and service port for a service"
default = [
{
name = "http"
port = "80"
target_port = "80"
container_port = "80"
},
{
name = "https"
port = "443"
target_port = "443"
container_port = "443"
},
]
}
variable "loadbalancer_service_type" {
description = "Service type to be used"
default = "LoadBalancer"
}
## TODO - Add ability to specify NodePort
# variable "loadbalancer_service_node_port" {
# description = "If explicit Nodeport is required"
# default = ""
# }
variable "loadbalancer_service_ip" {
description = "IP address to assign (if cloud provider supports it)"
default = ""
}
variable "loadbalancer_service_annotations" {
description = "Annotations to apply to Ambassador loadbalancer service"
default = {}
type = map(string)
}
variable "loadbalancer_service_source_ranges" {
description = "Passed to cloud provider load balancer if created (e.g: AWS ELB)"
default = ""
}
variable "admin_service_enable" {
description = "Enable the admin service for Ambassador's admin UI"
default = true
}
## TODO - Add ability to specify NodePort
# variable "admin_service_node_port" {
# description = "If explicit Nodeport is required"
# default = ""
# }
variable "admin_service_annotations" {
description = "Annotations to apply to Ambassador loadbalancer service"
default = {}
type = map(string)
}
variable "admin_service_type" {
description = "Ambassador's admin service type to be used"
default = "ClusterIP"
}
variable "exporter_configuration" {
description = " Prometheus exporter configuration in YALM format"
default = ""
}
variable "timing_restart" {
description = "The minimum number of seconds between Envoy restarts"
default = ""
}
variable "timing_drain" {
description = "The number of seconds that the Envoy will wait for open connections to drain on a restart"
default = ""
}
variable "timing_shutdown" {
description = "The number of seconds that Ambassador will wait for the old Envoy to clean up and exit on a restart"
default = ""
}
variable "lables_global" {
description = "Additional global lables to be applied, list of maps"
default = []
type = list(string)
}
variable "autoscaling_min_replicas" {
description = "This field sets minimum autoscaling replica count"
default = 3
}
variable "autoscaling_max_replicas" {
description = "This field sets maximum autoscaling replica count"
default = 6
}
variable "autoscaling_target_cpu_utilization_percentage" {
description = "Configure the target cpu utilization percentage for each container"
default = 50
}