-
Notifications
You must be signed in to change notification settings - Fork 6
/
variables.tf
57 lines (48 loc) · 1.89 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
variable "cluster_secret" {
type = string
description = "Secret that's shared between all Nodes and is used to connect to the Cluster."
}
variable "hcloud_token" {
type = string
description = "The token that is used to interact with the Hetzner Cloud API."
}
variable "hcloud_ssh_key_path" {
type = string
default = "~/.ssh/k3s_management"
description = "Path to the key you want to use register on your Hetzner Cloud machines. The public key must have the same location and a .pub ending."
}
variable "hcloud_zone" {
type = string
default = "nbg1"
description = "Zone you want your Cluster to get deployed in."
}
variable "hcloud_network_zone" {
type = string
default = "eu-central"
description = "Network-Zone you want your Cluster to get deployed in."
}
variable "instance_prefix" {
type = string
default = "k3s"
description = "The prefix that comes before the index-value to form the name of the machine."
}
variable "additional_management_nodes" {
type = number
default = 2
description = "Number of additional management Nodes. Must be a always a even number, so the total amount of Management nodes is odd (1+2=3, 1+4=5, etc.)"
}
variable "management_instance_type" {
type = string
default = "cx11"
description = "Hetzner instance type that is used for the machines. You can use the Hetzner Cloud CLI or browse their website to get a list of valid instance types."
}
variable "worker_nodes" {
type = number
default = 2
description = "Number of additional management Nodes. Must be a always a even number, so the total amount of Management nodes is odd (1+2=3, 1+4=5, etc.)"
}
variable "worker_instance_type" {
type = string
default = "cx21"
description = "Hetzner instance type that is used for the machines. You can use the Hetzner Cloud CLI or browse their website to get a list of valid instance types."
}