generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
109 lines (93 loc) · 2.57 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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = ["name", "environment"]
description = "Label order, e.g. `name`,`application`."
}
variable "managedby" {
type = string
default = "terraform-do-modules"
description = "ManagedBy, eg 'terraform-do-modules' or '[email protected]'"
}
variable "enabled" {
type = bool
default = true
description = "Whether to create the resources. Set to `false` to prevent the module from creating any resources."
}
variable "region" {
type = string
default = "blr1"
description = "K8s Cluster Region."
}
variable "cluster_version" {
type = string
default = "1.27.2"
description = "K8s Cluster Version."
}
variable "vpc_uuid" {
type = string
default = ""
description = "The ID of the VPC where the Kubernetes cluster will be located."
}
variable "auto_upgrade" {
type = bool
default = false
description = "Enable auto upgrade during maintenance window."
}
variable "surge_upgrade" {
type = bool
default = false
description = "Enable surge upgrade during maintenance window."
}
variable "ha" {
type = bool
default = true
description = "Enable high availability control plane."
}
variable "registry_integration" {
type = bool
default = false
description = "Enables or disables the DigitalOcean container registry integration for the cluster. This requires that a container registry has first been created for the account."
}
variable "critical_node_pool" {
type = any
default = {}
description = "Cluster default node pool."
}
variable "app_node_pools" {
type = map(any)
default = {}
description = "Cluster additional node pools."
}
variable "tags" {
type = list(string)
default = []
description = "List of tags to apply to the cluster."
}
variable "maintenance_policy" {
type = object({
day = string
start_time = string
})
default = {
day = "any"
start_time = "5:00"
}
description = "Define the window updates are to be applied when auto upgrade is set to true."
}
variable "kubeconfig_path" {
type = string
default = "./kubeconfig"
description = "The path to save the kubeconfig to"
}