-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
67 lines (61 loc) · 1.44 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
variable "name" {
description = "Name prefix for resources"
type = string
}
variable "ami_architecture" {
type = string
default = "x86"
}
variable "computing" {
description = "Master and Worker nodes"
type = object({
masters = object({
instance_type = string
})
workers = object({
instance_type = string
desired_capacity = number
min_size = number
max_size = number
})
key_name = string
})
}
variable "dns" {
description = "DNS configuration"
type = object({
domain_name = string
controlplane_subdomain = string
ingress_subdomain = string
})
}
variable "networking" {
description = "VPC configuration"
type = object({
cidr = string
azs = list(string)
public_subnets = list(string)
})
default = {
cidr = "10.0.0.0/16"
azs = ["us-east-1a", "us-east-1b", "us-east-1c"]
public_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
}
}
variable "tags" {
description = "Tags to apply to all resources"
type = map(string)
default = {}
}
variable "versions" {
type = object({
kubernetes_version = string
kubernetes_install_version = string
containerd_version = string
})
default = {
kubernetes_version = "1.31.0"
kubernetes_install_version = "1.31.0-1.1"
containerd_version = "1.7"
}
}