-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
223 lines (181 loc) · 5.29 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
# Brightbox Cloud Region
variable "region" {
type = string
description = "Brightbox region to connect to"
default = "gb1"
}
# Brightbox Account Details
variable "username" {
type = string
description = "Brightbox account username"
}
variable "password" {
type = string
description = "Brightbox account password"
}
variable "account" {
type = string
description = "Brightbox account name"
}
variable "apiclient" {
type = string
description = "Brightbox API application client id"
default = "app-dkmch"
}
variable "apisecret" {
type = string
description = "Brightbox API application shared secret"
default = "uogoelzgt0nwawb"
}
# Cluster Details
variable "cluster_domainname" {
type = string
description = "internal domain name of the Kubernetes Cluster"
default = "cluster.local"
}
variable "cluster_name" {
type = string
description = "name of this Kubernetes Cluster - used to mark server descriptions"
default = "kubernetes"
}
variable "management_source" {
description = "CIDR of any external management workstations. The default is no external workstations"
type = list(string)
default = ["0.0.0.0/32"]
}
variable "secure_kubelet" {
description = "Ask kubelet to request a signing certificate from the master, rather than self-signing. Requires manual approval of certificates"
type = bool
default = false
}
variable "additional_server_groups" {
description = "Additional server group ids to add all cluster nodes to"
type = list(string)
default = []
}
# Masters
variable "master_count" {
type = number
description = "Number of master servers in cluster"
default = 1
}
variable "master_type" {
type = string
description = "Type of server to use as k8s master node"
default = "2gb.ssd"
}
variable "master_zone" {
type = string
description = "The zone in which the master nodes should be built. The default is to spread them across all zones."
default = ""
}
# Worker Nodes
variable "worker_root_size" {
type = number
description = "The size of the root partition on worker nodes"
default = 0
}
variable "worker_count" {
type = number
description = "Minimum number of worker nodes in cluster"
default = 1
}
variable "worker_max" {
type = number
description = "Maximum number of worker nodes in cluster"
default = 0
}
variable "worker_type" {
type = string
description = "Type of server to use as k8s worker node"
default = "2gb.ssd"
}
variable "worker_name" {
type = string
description = "The name given to worker nodes on the cluster"
default = "k8s-worker"
}
variable "worker_zone" {
type = string
description = "The zone in which the worker nodes should be built. The default is to spread them across all zones."
default = ""
}
variable "worker_drain_timeout" {
type = string
description = "How long to wait for pods to move off a node before it is deleted"
default = "120s"
}
variable "worker_cloudip_count" {
type = number
description = "Number of workers to allocate fixed cloud ips to"
default = 0
}
# Storage Nodes
variable "storage_root_size" {
type = number
description = "The size of the root partition on worker nodes"
default = 0
}
variable "storage_count" {
type = number
description = "Minimum number of storage nodes in cluster"
default = 0
}
variable "storage_max" {
type = number
description = "Maximum number of storage nodes in cluster"
default = 0
}
variable "storage_type" {
type = string
description = "Type of node to use as k8s storage node"
default = "2gb.ssd"
}
variable "storage_name" {
type = string
description = "The name given to storage nodes on the cluster"
default = "k8s-storage"
}
variable "storage_zone" {
type = string
description = "The zone in which the storage nodes should be built. The default is to spread them across all zones."
default = ""
}
variable "storage_system" {
type = string
description = "The storage system you wish to use (manual, openebs). Automatically sets up the storage partition in the correct format and location."
default = "manual"
}
# Releases
variable "kubernetes_release" {
type = string
description = "Version of Kubernetes to install"
default = "1.31.2"
}
variable "critools_release" {
type = string
description = "Version of cri-tools to install"
default = "1.31"
}
variable "autoscaler_release" {
type = string
description = "Version of Vertical Autoscaler to install if the scaling features are activated. This needs to be the same minor version as the k8s release"
default = "1.31.0"
}
variable "calico_release" {
type = string
description = "Version of Calico plugin to install"
default = "3.28.2"
}
# Container Registry
variable "container_registry" {
type = string
description = "container registry path"
default = "cr.brightbox.com/acc-juq13/public"
}
# Boot image search string
variable "image_desc" {
type = string
description = "Image pattern to use to select boot image"
default = "^ubuntu-jammy.*server$"
}