forked from demeter-run/ext-cardano-ogmios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
132 lines (121 loc) · 2.48 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
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
variable "namespace" {
type = string
}
variable "ogmios_version" {
type = string
validation {
condition = contains(["5", "6"], var.ogmios_version)
error_message = "Invalid version. Allowed values are 5 or 6."
}
}
variable "ogmios_image" {
type = string
}
variable "salt" {
type = string
}
variable "network" {
type = string
}
variable "node_private_dns" {
type = string
}
variable "node_affinity" {
type = object({
required_during_scheduling_ignored_during_execution = optional(
object({
node_selector_term = optional(
list(object({
match_expressions = optional(
list(object({
key = string
operator = string
values = list(string)
})), []
)
})), []
)
}), {}
)
preferred_during_scheduling_ignored_during_execution = optional(
list(object({
weight = number
preference = object({
match_expressions = optional(
list(object({
key = string
operator = string
values = list(string)
})), []
)
match_fields = optional(
list(object({
key = string
operator = string
values = list(string)
})), []
)
})
})), []
)
})
default = {}
}
variable "replicas" {
type = number
default = 1
}
variable "resources" {
type = object({
limits = object({
cpu = string
memory = string
})
requests = object({
cpu = string
memory = string
})
})
default = {
limits : {
cpu : "2",
memory : "1Gi"
}
requests : {
cpu : "200m",
memory : "500Mi"
}
}
}
variable "tolerations" {
description = "List of tolerations for the instance"
type = list(object({
effect = string
key = string
operator = string
value = optional(string)
}))
default = [
{
effect = "NoSchedule"
key = "demeter.run/compute-profile"
operator = "Exists"
},
{
effect = "NoSchedule"
key = "demeter.run/compute-arch"
operator = "Equal"
value = "x86"
},
{
effect = "NoSchedule"
key = "demeter.run/availability-sla"
operator = "Equal"
value = "consistent"
}
]
}
variable "image_pull_secret" {
type = string
default = null
}