forked from limejump/terraform-k8s-flux-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
222 lines (186 loc) · 5.38 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
variable "github_repository_name" {
description = "Name of the Github repository for Flux"
type = string
}
variable "github_repository_owner" {
description = "Org or user ID of the repo owner"
type = string
}
variable "github_repository_branch" {
description = "Branch to use as the upstream GitOps reference"
type = string
default = "master"
}
variable "github_deploy_key_title" {
description = "Title to use for the deploy key created in GitHub"
type = string
default = "Flux Deploy Key"
}
variable "github_install_deploy_key" {
description = "If true (default), add the SSH public key to the specified GitHub repo"
type = bool
default = true
}
variable "github_host" {
description = "Override this if you use GitHub Enterprise Server (defaults to github.com)"
type = string
default = "github.com"
}
variable "flux_docker_tag" {
description = "Tag of flux Docker image to pull"
type = string
default = "1.18.0"
}
variable "flux_known_hosts" {
description = "Set of hosts and their public ssh keys to mount into `/root/.ssh/known_hosts`"
type = set(string)
default = []
}
variable "flux_args_extra" {
description = "Mapping of additional arguments to provide to the flux daemon"
type = map(string)
default = {}
}
variable "private_key_pem" {
description = "Alternative Private Key for Flux to use when polling git via ssh"
type = string
default = null
}
variable "deploy_memcached" {
description = "If true, deploy memcached for use with flux registry scanning"
type = bool
default = true
}
variable "flux_deployment_annotations" {
description = "Optional annotations to apply to the Flux deployment"
type = map(string)
default = {}
}
variable "flux_deployment_labels" {
description = "Optional labels to apply to the Flux deployment"
type = map(string)
default = {
app = "flux"
name = "flux"
}
}
variable "flux_liveness_probe_failure_threshold" {
description = "The liveness probe failure threhold"
type = number
default = 3
}
variable "flux_liveness_probe_initial_delay_seconds" {
description = "The liveness probe initial delay in seconds"
type = number
default = 5
}
variable "flux_liveness_probe_period_seconds" {
description = "The liveness probe period in seconds"
type = number
default = 10
}
variable "flux_liveness_probe_success_threshold" {
description = "The liveness probe success threhold"
type = number
default = 1
}
variable "flux_liveness_probe_timeout_seconds" {
description = "The liveness probe timeout in seconds"
type = number
default = 5
}
variable "flux_liveness_probe_http_get_path" {
description = "The liveness probe http get path"
type = string
default = "/api/flux/v6/identity.pub"
}
variable "flux_liveness_probe_http_get_port" {
description = "The liveness probe http get port"
type = number
default = 3030
}
variable "flux_liveness_probe_http_get_scheme" {
description = "The liveness probe http get scheme"
type = string
default = "HTTP"
}
variable "flux_readiness_probe_failure_threshold" {
description = "The readiness probe failure threhold"
type = number
default = 3
}
variable "flux_readiness_probe_initial_delay_seconds" {
description = "The readiness probe initial delay in seconds"
type = number
default = 5
}
variable "flux_readiness_probe_period_seconds" {
description = "The readiness probe period in seconds"
type = number
default = 10
}
variable "flux_readiness_probe_success_threshold" {
description = "The readiness probe success threhold"
type = number
default = 1
}
variable "flux_readiness_probe_timeout_seconds" {
description = "The readiness probe timeout in seconds"
type = number
default = 5
}
variable "flux_readiness_probe_http_get_path" {
description = "The readiness probe http get path"
type = string
default = "/api/flux/v6/identity.pub"
}
variable "flux_readiness_probe_http_get_port" {
description = "The readiness probe http get port"
type = number
default = 3030
}
variable "flux_readiness_probe_http_get_scheme" {
description = "The readiness probe http get scheme"
type = string
default = "HTTP"
}
variable "container_port" {
description = "Port to expose on container"
type = number
default = 3030
}
variable "host_port" {
description = "Port to expose on host"
type = number
default = 0
}
variable "protocol" {
description = "Port protocol (must be TCP or UDP)"
type = string
default = "TCP"
}
variable "container_cpu_request" {
description = "How much CPU resource to request"
type = string
default = "250m"
}
variable "container_cpu_limit" {
description = "Upper boundary of CPU resource"
type = string
default = "1"
}
variable "container_memory_request" {
description = "How much memory resource to request"
type = string
default = "1Gi"
}
variable "container_memory_limit" {
description = "Upper boundary of memory resource"
type = string
default = "1Gi"
}
variable "memcached_docker_tag" {
description = "Tag of memcached Docker image to pull"
type = string
default = "1.4.25"
}