-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
212 lines (201 loc) · 5.51 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
variable "chart-repository" {
default = "https://helm.elastic.co"
description = "elastic repository for getting helm charts"
}
variable "namespace" {
default = "elastic-monitoring"
description = "all the resources will deploy here"
}
variable "stack-version" {
default = "7.13.0"
description = "elastic stack version"
type = string
}
## elasticsearch
variable "elasticsearch-credentials-username" {
default = "elastic"
description = "default elasticsearch username"
type = string
}
variable "elasticsearch-credentials-password" {
default = "admin"
description = "default elasticsearch password"
type = string
}
variable "elasticsearch-ingress-enabled" {
default = false
description = "elasticsearch ingress"
type = bool
}
variable "elasticsearch-ingress-host" {
default = "elasticsearch.example.com"
description = "elasticsearch ingress host"
type = string
}
variable "elasticsearch-esJavaOpts" {
default = "-Xmx1g -Xms1g"
description = "JVM options"
type = string
}
variable "elasticsearch-persistence-size" {
default = "30Gi"
description = "elasticsearch persistence size per pod"
type = string
}
variable "elasticsearch-values-file" {
default = ".terraform/modules/monitoring-with-elastic-stack/configs/elasticsearch/values.yaml"
description = "helm values file path"
type = string
}
## kibana
variable "kibana-replicas" {
default = 1
description = "kibana replicas"
type = number
}
variable "kibana-ingress-enabled" {
default = false
description = "kibana ingress"
type = bool
}
variable "kibana-ingress-host" {
default = "kibana.example.com"
description = "elasticsearch ingress host"
type = string
}
variable "kibana-values-file" {
default = ".terraform/modules/monitoring-with-elastic-stack/configs/kibana/values.yaml"
description = "helm values file path"
type = string
}
## metricbeat
variable "metricbeat-enabled" {
default = false
description = "enable metricbeat resource for deploy"
type = bool
}
variable "kubestate-enabled" {
default = true
description = "enable kube-state-metrics deployment for metricbeat"
type = bool
}
variable "metricbeat-daemonset-enabled" {
default = true
description = "metricbeat daemonset"
type = bool
}
variable "metricbeat-purger-schedule" {
// every 24H
default = "0 0 * * *"
description = "CronJob which cleaning up metricbeat data from elasticsearch (default:every 24H)"
type = string
}
variable "metricbeat-values-file" {
default = ".terraform/modules/monitoring-with-elastic-stack/configs/metricbeat/values.yaml"
description = "helm values file path"
type = string
}
## apm-server
variable "apm-server-enabled" {
default = false
description = "enable apm-server resource for deploy"
type = bool
}
variable "apm-server-values-file" {
default = ".terraform/modules/monitoring-with-elastic-stack/configs/apm-server/values.yaml"
description = "helm values file path"
type = string
}
## filebeat
variable "filebeat-enabled" {
default = false
description = "enable filebeat resource for deploy"
type = bool
}
variable "filebeat-daemonset-enabled" {
default = true
description = "metricbeat daemonset"
type = bool
}
variable "filebeat-deployment-enabled" {
default = false
description = "filebeat deployment"
type = bool
}
variable "filebeat-purger-schedule" {
// every 24H
default = "0 0 * * *"
description = "CronJob which cleaning up filebeat data from elasticsearch (default:every 24H)"
type = string
}
variable "filebeat-values-file" {
default = ".terraform/modules/monitoring-with-elastic-stack/configs/filebeat/values.yaml"
description = "helm values file path"
type = string
}
### grafana
variable "grafana-enabled" {
default = false
description = "enable grafana resource for deploy"
type = bool
}
variable "grafana-credentials-username" {
default = "admin"
description = "default grafana username"
type = string
}
variable "grafana-credentials-password" {
default = "admin"
description = "default grafana password"
type = string
}
variable "grafana-repository" {
default = "grafana/grafana"
description = "grafana repository"
type = string
}
variable "grafana-version" {
default = "8.0.0"
description = "grafana version"
type = string
}
variable "grafana-replicas" {
default = 1
description = "number of grafana replicas"
type = number
}
variable "grafana-ingress-enabled" {
default = false
description = "grafana ingress"
type = bool
}
variable "grafana-ingress-host" {
default = ["grafana.example.com"]
description = "list of grafana hosts"
type = list
}
variable "grafana-persistence-enabled" {
default = true
description = "grafana persistence"
type = bool
}
variable "grafana-persistence-storageClassName" {
default = "default"
description = "grafana storage class name"
type = string
}
variable "grafana-persistence-size" {
default = "10Gi"
description = "grafana persistence size"
type = string
}
variable "grafana-plugins" {
default = "yesoreyeram-infinity-datasource"
description = "grafana plugins"
type = string
}
variable "grafana-values-file" {
default = ".terraform/modules/monitoring-with-elastic-stack/configs/grafana/values.yaml"
description = "helm values file path"
type = string
}