-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
101 lines (86 loc) · 1.95 KB
/
variables.tf
File metadata and controls
101 lines (86 loc) · 1.95 KB
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
variable "doks_name" {
description = "DOKS cluster name"
type = string
}
variable "region" {
description = "Region where will be created the DOKS cluster"
type = string
}
variable "tags" {
description = "Tag list applied to the DOKS cluster"
type = list(string)
default = []
}
variable "doks_version" {
description = "DOKS Version"
type = string
}
variable "subnets" {
description = "DOKS Cluster subnets, not overlap with VPC CIDR range"
type = object({
cluster = string
services = string
})
}
variable "vpc_id" {
description = "VPC ID where the DOKS cluster will exists"
type = string
}
variable "project_id" {
description = "Project ID where the resources will be assigned"
type = string
default = null
}
variable "integrations" {
description = "DOKS Cluster integrations and plugins flags"
type = object({
registry = bool
routing_agent = bool
})
default = {
registry = true
routing_agent = false
}
}
variable "cluster_autoscaler_configuration" {
description = "DOKS options for cluster auto-scaling."
type = object({
scale_down_utilization_threshold = optional(number)
scale_down_unneeded_time = optional(string)
})
default = {}
}
variable "default_pool" {
description = "Configuration for the default node pool"
type = object({
size = string
node_count = number
tags = optional(list(string))
labels = optional(map(string))
taints = optional(list(object({
key = string
value = string
effect = string
})))
})
default = {
size = "s-1vcpu-1gb"
node_count = 1
}
}
variable "pools" {
description = "Configuration for the pools"
type = map(object({
size = string
min_nodes = number
max_nodes = number
tags = optional(list(string))
labels = optional(map(string))
taints = optional(list(object({
key = string
value = string
effect = string
})))
}))
default = {}
}