-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables-provider.tf
121 lines (105 loc) · 2.42 KB
/
variables-provider.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
variable "do_token" {
description = "DigitalOcean API Token"
type = string
}
variable "region" {
description = "Region where to create cluster"
type = string
}
variable "spaces_access_id" {
description = "Spaces Access Key ID for Backups"
type = string
default = null
}
variable "spaces_secret_key" {
description = "Spaces Access Key ID for Backups"
type = string
default = null
}
variable "spaces_buckets" {
description = "List of Space Buckets (See spaces.tf for defaults)"
type = any
default = []
# See spaces.tf for defaults
# Example:
# [
# {
# name: "mybucket",
# region: "nyc3",
# acl: "public",
# force_destroy: true
# },
# {
# name_prefix: "velero",
# region: "nyc3",
# acl: "private",
# force_destroy: false
# }
# ]
}
variable "vpc_uuid" {
description = "VPC UUID where to create cluster"
type = string
}
variable "kubernetes_version" {
description = "Kubernetes version"
type = string
default = "1.21.2-do.2"
}
variable "auto_upgrade" {
description = "Should the cluster will be automatically upgraded to new patch releases during its maintenance window"
type = bool
default = false
}
variable "surge_upgrade" {
description = "Should upgrades bringing up new nodes before destroying the outdated nodes"
type = bool
default = true
}
variable "node_pool" {
description = "Default node pool config"
type = any
default = {
name = "infra"
size = "s-4vcpu-8gb"
node_count = 2
auto_scale = false
min_nodes = 2
max_nodes = 2
tags = []
labels = {
role = "infra"
}
## Format is list(taint): [{key:XXX, value: XXX, effect:XXX},...]
taints = [{
key = "dedicated"
value = "infra"
effect = "NoSchedule"
}]
}
}
variable "node_pools" {
description = "List of node pools"
type = list(any)
default = [
{
name = "app"
size = "s-4vcpu-8gb"
node_count = 2
auto_scale = true
min_nodes = 2
max_nodes = 4
tags = []
labels = {
role = "app"
}
## Format is list(taint): [{key:XXX, value: XXX, effect:XXX},...]
taints = []
}
]
}
variable "tags" {
description = "DO tags to apply to resources"
type = list(string)
default = []
}