-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
151 lines (125 loc) · 4.24 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
variable "create_metric_exporter" {
type = bool
description = "Controls whether the Spot Ocean Metric Exporter should be created."
default = true
}
variable "create_namespace" {
type = bool
description = "Controls whether the namespace should be created if it does not yet exist."
default = true
}
variable "chart_version" {
type = string
description = "Chart version to be deployed."
default = "1.0.4"
}
variable "chart_repository" {
type = string
description = "Repository URL where to locate the Spot Ocean Metric Exporter chart."
default = "https://charts.spot.io"
}
variable "chart" {
type = string
description = "Chart name to be deployed."
default = "ocean-metric-exporter"
}
variable "chart_namespace" {
type = string
description = "Chart namespace to install the release into."
default = "spot-system"
}
variable "secret_name" {
type = string
description = "Secret name."
default = null
}
variable "namespace" {
type = string
description = "Kubernetes namespace where the components should be installed."
default = null
}
variable "config_map_name" {
type = string
description = "ConfigMap name."
default = null
}
variable "ca_bundle_secret_name" {
type = string
description = "CA bundle secret name."
default = null
}
variable "replica_count" {
type = number
description = "Replicas."
default = null
}
variable "image_repository" {
type = string
description = "Image repository."
default = null
}
variable "image_tag" {
type = string
description = "Image tag."
default = null
}
variable "image_pull_policy" {
type = string
description = "Image pull policy."
default = null
}
variable "image_pull_secrets" {
type = string
description = "Image pull secrets."
default = null
}
variable "create_service" {
type = bool
description = "Controls whether a service should be created."
default = null
}
variable "metricsconfiguration_categories" {
type = list(string)
description = "List of Categories to enable - if empty will get no metrics. Additional possible values can be found here: https://docs.spot.io/ocean/tools-and-integrations/prometheus/scrape?id=categories"
default = ["scaling"]
}
variable "metricsconfiguration_allow_metrics" {
type = list(string)
description = "List of Metrics to allow - if empty will get everything. Shouldn't be used with `denyMetrics`. Possible values can be found here: https://docs.spot.io/ocean/tools-and-integrations/prometheus/scrape?id=metrics"
default = null
}
variable "metricsconfiguration_deny_metrics" {
type = list(string)
description = "List of Metrics to deny - if empty will get everything. Shouldn't be used with `allowMetrics`. Possible values can be found here: https://docs.spot.io/ocean/tools-and-integrations/prometheus/scrape?id=metrics"
default = null
}
variable "metricsconfiguration_allow_labels" {
type = list(string)
description = "List of Labels to allow - if empty will get everything. Shouldn't be used with `denyLabels`. Possible values can be found here: https://docs.spot.io/ocean/tools-and-integrations/prometheus/scrape?id=labels"
default = null
}
variable "metricsconfiguration_deny_labels" {
type = list(string)
description = "List of Labels to deny - if empty will get everything. Shouldn't be used with `allowLabels`. Possible values can be found here: https://docs.spot.io/ocean/tools-and-integrations/prometheus/scrape?id=labels"
default = null
}
variable "resources_limits_cpu" {
type = string
description = "Specifies the maximum amount of cpu resources allowed"
default = "500m"
}
variable "resources_limits_memory" {
type = string
description = "Specifies the maximum amount of memory resources allowed"
default = "500Mi"
}
variable "resources_requests_cpu" {
type = string
description = "Specifies the minimum amount of cpu resources required"
default = "100m"
}
variable "resources_requests_memory" {
type = string
description = "Specifies the minimum amount of memory resources required"
default = "50Mi"
}