-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
54 lines (44 loc) · 1.25 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
variable "ingress_name" {
type = string
description = "Name of the ingress resource"
}
variable "k8s_namespace" {
type = string
description = "K8S namespace for this service"
}
variable "host_match" {
type = string
description = "Host header value to match when routing to the service"
}
variable "host_path" {
type = string
default = "/"
description = "Path value to match when routing to the service"
}
variable "target_service_name" {
type = string
description = "Name of destination service that the ingress should route to"
}
variable "target_service_port" {
type = string
description = "Port of destination service that the ingress should route to"
}
variable "labels" {
type = map(string)
description = "Labels to apply to ingress resource"
}
variable "timeout" {
type = number
description = "Timeout for the ingress resource"
default = 60
}
variable "sticky_sessions" {
type = object({
enabled = optional(bool, true),
duration_seconds = optional(number, 600),
cookie_name = optional(string, "happy_sticky_session"),
cookie_samesite = optional(string, "Lax"),
})
description = "Sticky session configuration"
default = {}
}