-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
140 lines (135 loc) · 3.71 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
variable "name" {
type = string
description = "Name used to identify deployed container and all related resources."
}
variable "image" {
type = string
description = "Image name and tag to deploy."
}
variable "paths" {
type = map(any)
description = "Object mapping local paths to container paths"
default = {}
}
variable "pvcs" {
type = list(object({
name = string
path = string
sub_path = optional(string, "")
read_only = optional(bool, false)
}))
description = "Object that contains the list of PVCs to mount in the container"
default = []
}
variable "domains" {
type = list(string)
description = "List of domains that should be configured to route traffic from."
default = []
}
variable "cloudflare_domains" {
type = list(string)
description = "List of domains that should be exposed through Cloudflare Tunnel. Requires the ingress class 'cloudflare-tunnel' to be configured."
default = []
}
variable "namespace" {
type = string
description = "Kubernetes namespace where resources must be created."
default = "default"
}
variable "node_selector" {
type = map(string)
description = "Node selector to use when deploying the container."
default = null
}
variable "container_port" {
type = string
description = "Container port where to send to requests to. If doesn't exist, service won't be created"
default = null
}
variable "service_port" {
type = string
description = "Port configured on the service side to receive requests (routed to the container port)."
default = "80"
}
variable "environment_variables" {
type = map(any)
description = "Map with environment variables injected to the containers."
default = {}
}
variable "resources" {
type = object({
limits = map(string)
requests = map(string)
})
description = "Map with resources limits and requests."
default = {
limits = {}
requests = {}
}
}
variable "capabilities_add" {
type = list(string)
description = "List of capabilities to add to the container."
default = []
}
variable "supplemental_groups" {
type = list(string)
description = "List of supplemental groups to add to the container."
default = []
}
variable "host_port" {
type = string
description = "Host port where to send to requests to."
default = null
}
variable "pod_additional_ports" {
type = list(object({
name = string
container_port = string
host_port = string
protocol = string
}))
description = "List of additional ports to expose on the pod."
default = []
}
variable "image_pull_secret" {
type = string
description = "Kubernetes secret storing registry credentials."
default = ""
}
variable "annotations" {
type = object({
ingress = optional(map(string), {})
service = optional(map(string), {})
})
description = "Annotations added to some components. Only ingress and service supported at the moment."
default = {
ingress = {}
service = {}
}
}
variable "http" {
type = bool
description = "Whether to create an ingress for HTTP traffic."
default = true
}
variable "https" {
type = bool
description = "Whether to create an ingress for HTTPS traffic."
default = true
}
variable "allow_from" {
type = list(string)
description = "List of services to allow traffic from"
default = []
}
variable "args" {
type = list(string)
description = "List of arguments to pass to the container"
default = []
}
variable "privileged" {
type = bool
description = "Whether to run the container in privileged mode"
default = false
}