forked from cicdteam/terraform-hcloud-k3s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
40 lines (33 loc) · 910 Bytes
/
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
variable "hcloud_token" {
description = "Hetzner cloud auth token"
}
variable "cluster_name" {
description = "Cluster name (prefix for all resource names)"
default = "hetzner"
}
variable "datacenter" {
description = "Hetzner datacenter where resources resides, hel1-dc2 (Helsinki 1 DC 2) or fsn1-dc14 (Falkenstein 1 DC14)"
default = "hel1-dc2"
}
variable "image" {
description = "Node boot image"
default = "ubuntu-20.04"
}
variable "master_type" {
description = "Master node type (size)"
default = "cx21" # 2 vCPU, 4 GB RAM, 40 GB Disk space
}
variable "ssh_keys" {
type = list
description = "List of public ssh_key ids"
}
variable "k3s_channel" {
default = "stable"
}
variable "node_groups" {
description = "Map of worker node groups, key is server_type, value is count of nodes in group"
type = map(string)
default = {
"cx21" = 1
}
}