-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
141 lines (122 loc) · 3.45 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
141
variable "kong_image" {
type = string
description = "Kong Docker image to use"
default = "kong/kong:3.5.0"
}
variable "kong_plugins" {
type = list(string)
description = "List of plugins to load"
default = ["bundled"]
}
variable "cf_org_name" {
type = string
description = "The CF Org to deploy under"
}
variable "cf_space_name" {
type = string
description = "The CF Space to deploy in"
}
variable "cf_domain_name" {
type = string
description = "The CF domain to use for Kong"
default = ""
}
variable "hostnames" {
type = list(string)
description = "The list of hostnames to use for the gateway"
default = []
}
variable "name_postfix" {
type = string
description = "The postfix string to append to the hostname, prevents namespace clashes"
default = ""
}
variable "environment" {
type = map(any)
description = "Environment variables for Kong app"
default = {}
}
variable "kong_declarative_config_string" {
type = string
description = "Declarative configuration json for Kong. To be provided while running in db less declarative mode"
default = "{\"_format_version\":\"1.1\", \"services\":[{\"host\":\"go-hello-world.eu-west.philips-healthsuite.com\",\"port\":443,\"protocol\":\"https\", \"routes\":[{\"paths\":[\"/\"]}]}],\"plugins\":[{\"name\":\"prometheus\"}]}"
}
variable "kong_nginx_worker_processes" {
type = number
description = "Number of worker processes to use. When increase this, also increase memory allocation"
default = 4
}
variable "kong_autoscaler_config" {
type = list(object({
min = number
max = number
query = string
expr = string
}))
description = "The Variant autoscaling configuration for Kong"
default = [{
min = 2
max = 5
query = "avg(avg_over_time(cpu{guid=\"{{ guid }}\"}[{{ window }}]))"
expr = "query_result > 80"
}]
}
variable "network_policies" {
description = "The container-to-container network policies to create with Kong as the source app"
type = list(object({
destination_app = string
protocol = string
port = string
}))
default = []
}
variable "memory" {
type = number
description = "The amount of RAM to allocate for Kong (MB)"
default = 1024
}
variable "disk" {
type = number
description = "The amount of Disk space to allocate for Kong (MB)"
default = 1024
}
variable "db_plan" {
type = string
description = "The Database plan to use"
default = "postgres-micro-dev"
}
variable "db_json_params" {
type = string
description = "Optional DB JSON params"
default = "{}"
}
variable "enable_postgres" {
type = bool
description = "Enable or disables postgres persistence"
default = false
}
variable "enable_protected_admin_api" {
type = bool
description = "Enables the ADMIN API for use by e.g. Kong provider"
default = false
}
variable "strategy" {
type = string
description = "Deployment strategy, 'none' or 'blue-green', default is 'none'"
default = "none"
}
variable "docker_username" {
type = string
description = "Docker registry username"
default = ""
}
variable "docker_password" {
type = string
description = "Docker registry password"
default = ""
}
variable "start_command" {
type = string
description = "Explicit Docker startup command"
default = ""
}