-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
85 lines (75 loc) · 1.89 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
variable "name" {
type = string
description = "Service name. It's used as a helm release name and specified PodName in AWS CloudWatch metrics for which alarms will be created."
}
variable "namespace" {
type = string
description = "Namespace"
default = null
}
variable "create_namespace" {
type = bool
description = "Create namespace"
default = false
}
variable "cluster_name" {
type = string
description = "Cluster name"
}
variable "helm_values" {
type = any
description = "Values which overwrite chart defaults"
default = null
}
variable "repository" {
type = string
default = "https://dasmeta.github.io/helm/"
}
variable "chart" {
type = string
default = "base"
}
variable "chart_version" {
type = string
default = null
}
variable "alarms" {
type = object({
enabled = optional(bool, true)
sns_topic = string
custom_values = optional(any, {})
restarts = optional(object({
enabled = bool
}), {
enabled = true
})
replicas = optional(object({
enabled = bool
}), {
enabled = true
})
network_in = optional(object({
enabled = bool
}), {
enabled = true
})
network_out = optional(object({
enabled = bool
}), {
enabled = true
})
maximum_replicas_usage = optional(object({
enabled = optional(bool, true)
maximum_replicas = optional(number)
}), {
enabled = true
maximum_replicas = 3 //The count of HPA maximum for a service. It will be used as a threshold for HPA maximum alarm.
})
})
description = "Alarms are enabled by default. You need to set SNS topic name to send alarms. Use custom_values to customize alarms."
}
variable "deploy_service" {
type = bool
description = "Wether to deploy the service via helm or not."
default = true
}