forked from demeter-run/ext-cardano-ogmios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
193 lines (167 loc) · 3.15 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
variable "namespace" {
type = string
}
variable "dns_zone" {
type = string
default = "demeter.run"
}
variable "cluster_issuer" {
type = string
default = "letsencrypt"
}
variable "extension_name" {
type = string
default = "ogmios-m1"
}
variable "cloud_provider" {
type = string
default = "aws"
}
variable "networks" {
type = list(string)
default = ["mainnet", "preprod", "preview", "vector-testnet"]
}
variable "versions" {
type = list(string)
default = ["5", "6"]
}
variable "o11y_datasource_uid" {
type = string
default = null
}
// operator settings
variable "operator_image_tag" {
type = string
}
variable "api_key_salt" {
type = string
default = "ogmios-salt"
}
variable "dcu_per_frame" {
type = map(string)
default = {
"mainnet" = "10"
"preprod" = "5"
"preview" = "5"
"vector-testnet" = "5"
}
}
variable "metrics_delay" {
type = number
default = 60
}
variable "prometheus_url" {
type = string
default = "http://prometheus-operated.demeter-system.svc.cluster.local:9090/api/v1"
}
variable "operator_resources" {
type = object({
limits = object({
cpu = string
memory = string
})
requests = object({
cpu = string
memory = string
})
})
default = {
limits : {
cpu : "50m",
memory : "250Mi"
}
requests : {
cpu : "50m",
memory : "250Mi"
}
}
}
// proxy green settings
variable "proxy_green_name" {
type = string
default = "proxy-green"
}
variable "proxy_green_image_tag" {
type = string
}
variable "proxy_green_replicas" {
type = number
default = 1
}
variable "proxy_green_extra_annotations" {
type = map(string)
default = {}
}
variable "proxy_green_environment" {
type = string
default = "green"
}
// proxy blue settings
variable "proxy_blue_name" {
type = string
default = "proxy"
}
variable "proxy_blue_image_tag" {
type = string
}
variable "proxy_blue_replicas" {
type = number
default = 1
}
variable "proxy_blue_extra_annotations" {
type = map(string)
default = {}
}
variable "proxy_blue_environment" {
type = string
default = null
}
variable "proxy_resources" {
type = object({
limits = object({
cpu = string
memory = string
})
requests = object({
cpu = string
memory = string
})
})
default = {
limits : {
cpu : "50m",
memory : "250Mi"
}
requests : {
cpu : "50m",
memory : "250Mi"
}
}
}
variable "instances" {
type = map(object({
salt = string
network = string
ogmios_image = string
node_private_dns = string
ogmios_version = string
replicas = number
image_pull_secret = optional(string)
resources = optional(object({
limits = object({
cpu = string
memory = string
})
requests = object({
cpu = string
memory = string
})
}))
tolerations = optional(list(object({
effect = string
key = string
operator = string
value = optional(string)
})))
}))
}