-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
190 lines (159 loc) · 4.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
variable "storage_class" {
default = "gp2"
description = "Storage Class to use for Persistence"
}
variable "nginx_name" {
default = "nginx"
description = "Release name for the installed helm chart"
}
variable "nginx_yml_file" {
default = null
}
variable "nginx_min_replicas" {
default = 2
description = "Minimum number of Nginx Replicas"
}
variable "nginx_max_replicas" {
default = 11
description = "Maximum number of Nginx Replicas"
}
variable "cert_manager_email" {
default = null
description = "Your email address to use for cert manager"
}
variable "datadog_api_key" {
default = ""
description = "The API key for datadog"
}
variable "datadog_values" {
default = ""
description = "Values for datadog helm chart"
}
variable "datadog_values_extra" {
default = []
description = "List of extra values for datadog helm chart"
}
variable "grafana_enabled" {
default = false
description = "Enable grafana"
}
variable "grafana_admin_user" {
default = "opszero"
description = "The User name of Grafana for login Dashboard"
}
variable "grafana_admin_password" {
default = ""
description = "The Password of Grafana for login Dashboard"
}
variable "grafana_ingress_enabled" {
default = false
description = "Enable grafana ingress"
}
variable "grafana_ingress_hosts" {
default = []
description = "Add grafana ingress hosts"
}
variable "grafana_google_auth_client_id" {
default = ""
description = "Add Google Auth client id"
}
variable "grafana_google_auth_client_secret" {
default = ""
description = "Add Google Auth client secret"
}
variable "grafana_persistence_storage" {
default = false
description = "Enable persistence storage for Grafana"
}
variable "grafana_extra_yml" {
default = null
description = "Grafana Datasources as Yaml"
}
variable "grafana_efs_enable" {
default = false
description = "Enable EFS storage for Grafana"
}
variable "grafana_efs_storage_class_name" {
default = ""
description = "If EFS is needed pass EFS storage class, but make sure efs and efs driver deployed"
}
variable "grafana_datasources" {
type = list(object({
name = string
type = string
url = string
access = string
isDefault = bool
}))
default = [
# {
# name = "Postgres"
# type = "postgres"
# url = "postgresql://user:[email protected]:5432/dbname"
# access = "proxy"
# isDefault = false
# },
# {
# name = "Loki"
# type = "loki"
# url = "http://loki-server.loki.svc.cluster.local"
# access = "proxy"
# isDefault = false # This should be false
# }
]
}
#loki
variable "grafana_loki_enabled" {
default = false
description = "Enable grafana loki"
}
variable "grafana_loki_yml_file" {
default = null
}
variable "otel_yml_file" {
default = null
}
variable "grafana_loki_bucket_name" {
type = string
default = ""
description = "Name for the S3 bucket"
}
variable "prometheus_persistence_storage" {
default = false
description = "Enable persistence storage for Prometheus"
}
variable "prometheus_additional_scrape_configs" {
type = list(object({
job_name = string
targets = list(string)
scrape_interval = string
metrics_path = string
}))
default = []
description = "Add additional scrape for configuration for prometheus if needed"
}
variable "pushgateway_ingress_host" {
default = []
description = "List of hosts for prometheus push gateway ingress"
}
variable "prometheus_enabled" {
default = true
description = "Enable prometheus"
}
variable "cert_manager_leader_election_namespace" {
default = "cert-manager"
description = "The namespace used for the leader election lease. Change to cert-manager for GKE Autopilot"
}
variable "cert_manager_resources" {
type = map(object({
cpu = string
memory = string
}))
default = null # You can set a default value if needed
}
variable "cert_manager_version" {
default = "1.15.1"
}
variable "kubecost_enabled" {
default = false
}