-
Notifications
You must be signed in to change notification settings - Fork 2
/
vars.tf
76 lines (65 loc) · 1.73 KB
/
vars.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
variable "hcloud_token" {
description = "The token for accessing the Hetzner API"
type = string
}
variable "prefix" {
description = "Common prefix for all services"
type = string
}
variable "labels" {
description = "Hetzner Labels to apply to all resources"
type = map(string)
default = {}
}
variable "ssh_public_keys" {
description = "The ssh public keys which can be used to connect to the nodes"
type = map(string)
default = {}
}
variable "perform_system_update" {
type = bool
description = "If set to true, a system update will be performed on each node before starting RKE2"
}
variable "network_zone" {
description = "Zone for all the networks"
type = string
}
variable "ssh_port" {
description = "The main SSH port to connect to the nodes"
type = number
default = 22
validation {
condition = var.ssh_port >= 0 && var.ssh_port <= 65535
error_message = "The SSH port must use a valid range from 0 to 65535"
}
}
variable "master_node" {
description = "List of nodepools which will serve as a master"
type = object({
name = string
server_type = string
location = string
})
}
variable "agent_nodepools" {
description = "List of nodepools used as agents in the cluster"
type = list(object({
name = string
server_type = string
location = string
count = number
}))
}
variable "cert-manager" {
description = "Option for customizing the cert-manager instance that will be deployed"
type = object({
email = string
})
}
variable "loadbalancer" {
description = "Configure the Load Balancer that will be created"
type = object({
type = string
location = string
})
}