-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
156 lines (133 loc) · 3.63 KB
/
Copy pathvariables.tf
File metadata and controls
156 lines (133 loc) · 3.63 KB
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
variable "relay_name" {
description = "Relay cluster name"
type = string
}
variable "cluster_size" {
description = "The number of the nodes in a relay cluster"
type = string
}
variable "relay_version" {
description = "Charon image tag to use to deploy the relay statefulset"
type = string
}
variable "udp_enabled" {
description = "Enable QUIC/UDP connectivity. Sets CHARON_P2P_UDP_ADDRESS and creates a UDP LoadBalancer service on port 3630."
type = bool
default = false
}
variable "cloud_provider" {
description = "Cloud provider name. The module supports aws and gcp."
type = string
}
variable "external_ips" {
description = "(Optional) List of public static IPs. Only Supported by GCP. (Deprecated)"
type = list(string)
default = null
}
variable "primary_base_domain" {
description = "The primary base domain name to create relay subdomain. obol.tech -> relay-0.obol.tech"
type = string
}
variable "extra_domains" {
description = "List of extra domains"
type = list(string)
default = []
}
variable "loki_endpoint" {
description = "(Optional) The loki endpoint to push logs to it."
type = string
default = ""
}
variable "haproxy_chart_version" {
description = "Haproxy helm chart version"
type = string
default = "3.5.4"
}
variable "haproxy_replicas_count" {
description = "The number of haproxy replicas"
type = string
default = "1"
}
variable "node_selector_enabled" {
description = "Enable node selector"
type = bool
default = false
}
variable "node_selector" {
description = "Node selector"
type = string
default = null
}
variable "storageclass" {
description = "Kubernetes storage class (standard, gp2, etc)"
type = string
default = "standard"
}
variable "memory_limits" {
description = "Relay pod memory limits"
type = string
default = null
}
variable "memory_requests" {
description = "Relay pod memory requests"
type = string
default = "500Mi"
}
variable "cpu_limits" {
description = "Relay pod cpu limits"
type = string
default = null
}
variable "cpu_requests" {
description = "Relay pod cpu requests"
type = string
default = "500m"
}
variable "wait_for_load_balancer" {
description = "Wait until the load balancer is created"
type = string
default = "true"
}
variable "node_affinity_config" {
description = "Deployment pod affinity configuration"
type = list(object({
type = string
weight = number
topology_key = string
label_selectors = list(object({
match_expressions = list(object({
key = string
operator = string
values = list(string)
}))
}))
}))
default = [{
type = "preferred_during_scheduling_ignored_during_execution"
weight = 100
topology_key = "topology.kubernetes.io/zone"
label_selectors = [{
match_expressions = null
}]
}]
}
variable "max_unavailable" {
description = "value for PDB maxUnavailable"
type = string
default = "1"
}
variable "topology_spread_enabled" {
description = "Enable topology spread constraints to distribute pods evenly across nodes"
type = bool
default = true
}
variable "auto_create_tls" {
description = "Flag to enable cert-manager annotations to auto generate tls certificates"
type = bool
default = true
}
variable "auto_create_dns" {
description = "Flag to enable external-dns annotations to auto generate dns records"
type = bool
default = true
}