-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
105 lines (90 loc) · 2.46 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
variable "cluster_name" {
description = "A name for the Kubernetes cluster."
type = string
default = "dev-cluster"
}
variable "region" {
type = string
description = "The region where the Kubernetes cluster will be created."
default = "fra1"
}
variable "vpc_uuid" {
type = string
description = "The ID of the VPC where the Kubernetes cluster will be located."
default = null
}
variable "tags" {
description = "A list of tag names to be applied to the Kubernetes cluster."
type = list(any)
default = ["kubernetes"]
}
variable "kubernetes_version" {
type = string
description = "The Kubernetes version (in prefix format)"
default = null # e.g. "1.21."
}
variable "maintenance_policy_start_time" {
type = string
description = "The start time in UTC of the maintenance window policy in 24-hour clock format / HH:MM notation"
default = "01:00"
}
variable "maintenance_policy_day" {
type = string
description = "The day of the maintenance window policy"
default = "sunday"
}
variable "size" {
type = string
description = "The slug identifier for the type of Droplet to be used as workers in the node pool."
default = "s-2vcpu-2gb"
}
variable "node_count" {
type = number
description = "The number of Droplet instances in the node pool."
default = 3
}
variable "min_nodes" {
default = 1
type = string
description = "Autoscaling Minimum node capacity"
}
variable "max_nodes" {
default = 5
type = string
description = "Autoscaling maximum node capacity"
}
variable "auto_scale" {
description = "Enable cluster autoscaling"
type = bool
default = false
}
variable "auto_upgrade" {
type = bool
description = "Whether the cluster will be automatically upgraded"
default = false
}
variable "node_labels" {
description = "List of Kubernetes labels to apply to the nodes"
type = map(any)
default = {
"service" = "kubernetes"
}
}
variable "node_tags" {
description = "The list of instance tags applied to all nodes."
type = list(any)
default = ["kubernetes"]
}
variable "node_pools" {
description = "Additional node pool configuration"
type = map(object({
size = string
node_count = number
auto_scale = bool
min_nodes = number
max_nodes = number
node_tags = list(string)
node_labels = map(string)
}))
default = {}
}