-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
88 lines (79 loc) · 1.88 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
variable "name" {
description = "Base name for all the created resources"
type = string
default = "keycloak"
}
variable "image" {
description = "Docker image for the Keycloak container"
type = string
default = "docker.io/jboss/keycloak:latest"
}
variable "namespace" {
description = "Namespace to spawn all the resources"
type = string
default = "default"
}
variable "replicas" {
description = "Number of replicas for Keycloak. Ignored when autoscaling is specified."
type = number
default = 1
}
variable "autoscaling" {
description = "Enable auto-scaling via horizontal pod autoscaler"
type = object({
min_replicas = number
max_replicas = number
target_cpu_utilization_percentage = number
})
default = null
}
variable "ingress" {
description = "Ingress configurations"
type = object({
annotations = optional(map(string))
# rules = array({
# host = string
# paths = array({
# path = string
# path_type = string
# })
# })
})
default = {}
}
variable "env" {
description = "Environment variables for the Keycloak container"
type = map(string)
default = {}
}
variable "startup_scripts" {
description = "Startup scripts to be run when the Keycloak container is initalized"
type = map(string)
default = {}
}
variable "resources" {
type = object({
limits = optional(object({
cpu = optional(string)
memory = optional(string)
}))
requests = optional(object({
cpu = optional(string)
memory = optional(string)
}))
})
default = {
requests = {
cpu = 0.1
memory = "500M"
}
}
}
variable "affinity_required_node_labels" {
type = list(object({
key = string
operator = string
values = list(string)
}))
default = []
}