-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
96 lines (83 loc) · 2.08 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
variable "namespace" {
description = "Deployment namespace"
type = string
}
variable "replicas" {
description = "Number of deployment replicas"
type = object({
max = number
min = number
})
default = {
max = 12
min = 3
}
}
variable "prometheus_scrape" {
description = "Enable prometheus scraping"
type = bool
default = true
}
variable "prometheus_port" {
description = "Set prometheus port"
type = number
default = 10254
}
variable "nginx_configmap_entries" {
description = "Key-value pairs to be added to nginx configmap"
type = map(string)
default = {}
}
variable "nginx_extra_request_headers" {
description = "Additional nginx request headers"
type = map(string)
default = {}
}
variable "nginx_extra_response_headers" {
description = "Additional nginx response headers"
type = map(string)
default = {}
}
variable "nginx_image" {
description = "Nginx container image"
type = string
default = "k8s.gcr.io/ingress-nginx/controller:v1.0.3"
}
variable "nginx_resources" {
description = "Nginx container resource configuration"
type = object({
limits = object({
cpu = string
memory = string
})
requests = object({
cpu = string
memory = string
})
})
default = {
limits = {
cpu = "2"
memory = "1G"
}
requests = {
cpu = "1"
memory = "512M"
}
}
}
variable "nginx_ingress_controller_image_tag" {
description = "The image tag to use for the NGINX ingress controller. See https://github.com/kubernetes/ingress-nginx/releases for available versions"
type = string
default = "v0.44.0@sha256:3dd0fac48073beaca2d67a78c746c7593f9c575168a17139a9955a82c63c4b9a"
}
variable "deployment_node_selector" {
description = "Map of label names and values to assign the podspec's nodeSelector property"
type = map(string)
default = null
}
variable "priority_class_name" {
description = "The priority class to attach to the deployment"
type = string
default = null
}