forked from rtlnl/terraform-kubernetes-flux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
160 lines (141 loc) · 3.97 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
variable "namespace" {
type = string
description = "Name of namespace where module should be installed"
default = "flux"
}
variable "git_url" {
type = string
description = "Github repository that should be monitored by Flux"
}
variable "git_branch" {
type = string
description = "Git branch that flux should monitor"
default = "master"
}
variable "git_path" {
type = string
description = "Git path that flux should monitor"
default = ""
}
variable "flux_version" {
type = string
description = "SemVer version of Flux"
default = "1.21.0"
}
variable "flux_arguments" {
type = list(string)
description = "Arguments supplied to the flux container, for reference check the following: https://docs.fluxcd.io/en/latest/references/daemon/"
default = [
"--log-format=fmt",
"--ssh-keygen-dir=/var/fluxd/keygen",
"--ssh-keygen-format=RFC4716",
"--git-readonly=false",
"--git-user=Weave Flux",
"--git-verify-signatures=false",
"--git-set-author=false",
"--git-poll-interval=1m",
"--git-timeout=20s",
"--sync-interval=5m",
"--git-ci-skip=false",
"--automation-interval=1m",
"--registry-rps=200",
"--registry-burst=125",
"--registry-trace=false",
"--sync-state=git",
"--memcached-service=",
"--memcached-hostname=flux-memcached",
]
}
variable "flux_resources" {
type = map(string)
description = "Resources to give to the flux deployment"
default = {
cpu = "50m"
memory = "64Mi"
}
}
variable "flux_replicas" {
type = number
description = "How many instances of flux should be created"
default = 1
}
variable "install_helm_operator" {
type = bool
description = "Whether the helm operator should be installed next to Flux, will only work with Helm v3 by default, change the helm_operator_arguments to make it support v2."
}
variable "helm_operator_name" {
type = string
description = "Name of the helm operator resources"
default = "helm-operator"
}
variable "helm_operator_arguments" {
type = list(string)
description = "Command line arguments supplied to the helm operator, check out https://docs.fluxcd.io/projects/helm-operator/en/stable/references/operator/"
default = [
"--enabled-helm-versions=v3",
"--log-format=fmt",
"--git-timeout=20s",
"--git-poll-interval=5m",
"--charts-sync-interval=3m",
"--status-update-interval=30s",
"--update-chart-deps=true",
"--log-release-diffs=false",
"--workers=4"
]
}
variable "helm_operator_version" {
type = string
description = "SemVer Version of the helm operator"
default = "1.2.0"
}
variable "helm_operator_resources" {
type = map(string)
description = "Resources to give to the helm operator deployment"
default = {
cpu = "50m"
memory = "64Mi"
}
}
variable "helm_operator_replicas" {
type = number
description = "How many instances of the helm operator should be created"
default = 1
}
variable "install_memcached" {
type = bool
description = "Whether to create an instance of Memcached alongside the Flux deployment"
default = true
}
variable "memcached_version" {
type = string
description = "SemVer Version of memcached"
default = "1.5.20"
}
variable "memcached_arguments" {
type = list(string)
description = "Command line arguments supplied to memcached"
default = [
"-m 512",
"-p 11211",
"-I 5m"
]
}
variable "memcached_resources" {
type = map(string)
description = "Resources to give to memcached deployment"
default = {
cpu = "50m"
memory = "64Mi"
}
}
variable "memcached_replicas" {
type = number
description = "How many instances of memcached should be created"
default = 1
}
variable "kubeconfig" {
type = string
description = "Path to kubeconfig file, used with kubectl calls"
default = ""
}