forked from demeter-run/ext-cardano-ogmios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
103 lines (86 loc) · 1.73 KB
/
main.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
locals {
name = var.name
role = "proxy"
prometheus_port = 9187
prometheus_addr = "0.0.0.0:${local.prometheus_port}"
proxy_port = 8080
proxy_addr = "0.0.0.0:${local.proxy_port}"
# proxy_labels = var.environment != null ? { role = local.role, environment = var.environment } : { role = local.role }
proxy_labels = var.environment != null ? { role = "${local.role}-${var.environment}" } : { role = local.role }
}
variable "name" {
type = string
default = "proxy"
}
// blue - green
variable "environment" {
default = null
}
variable "extra_annotations" {
description = "Extra annotations to add to the proxy services"
type = map(string)
default = {}
}
variable "namespace" {
type = string
}
variable "replicas" {
type = number
default = 1
}
variable "proxy_image_tag" {
type = string
}
variable "resources" {
type = object({
limits = object({
cpu = string
memory = string
})
requests = object({
cpu = string
memory = string
})
})
default = {
limits : {
cpu : "2",
memory : "250Mi"
}
requests : {
cpu : "100m",
memory : "250Mi"
}
}
}
variable "ogmios_port" {
type = number
default = 1337
}
variable "extension_name" {
type = string
}
variable "networks" {
type = list(string)
default = ["mainnet", "preprod", "preview", "vector-testnet"]
}
variable "versions" {
type = list(string)
default = ["5", "6"]
}
variable "dns_zone" {
type = string
default = "demeter.run"
}
variable "cluster_issuer" {
type = string
default = "letsencrypt"
}
variable "cloud_provider" {
type = string
default = "aws"
}
variable "healthcheck_port" {
type = number
default = null
}