forked from scm2342/rke2-build-hetzner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
174 lines (146 loc) · 3.69 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
variable "hcloud_token" {
type = string
sensitive = true
description = "Hetzner Cloud API token"
}
variable "hdns_token" {
type = string
sensitive = true
default = ""
description = "Hetzner DNS API token"
}
variable "nodes_cidr" {
type = string
default = "10.110.0.0/16"
description = "subnet to use for nodes"
}
variable "cluster_cidr" {
type = string
default = "10.42.0.0/16"
description = "subnet to use for pods"
}
variable "service_cidr" {
type = string
default = "10.43.0.0/16"
description = "subnet to use for services"
}
variable "location" {
type = string
default = "nbg1"
description = "Hetzner location for the cluster"
}
variable "domain" {
type = string
description = "domain of the cluster"
}
variable "cluster_name" {
type = string
description = "name of the cluster"
}
variable "master_type" {
type = string
default = "cax11"
description = "machine type to use for the master servers"
}
variable "agent_type" {
type = string
default = "cax11"
description = "machine type to use for the agents"
}
variable "agent_count" {
type = number
default = 0
description = "count of the agent servers"
}
variable "image" {
type = string
default = "ubuntu-22.04"
description = "image to use for the servers"
}
variable "rke2_version" {
type = string
default = ""
description = "target version of RKE2"
}
variable "hcloud_ccm_version" {
type = string
default = null
description = "Cloud Controller Manager for Hetzner Cloud version"
}
variable "hcloud_csi_version" {
type = string
default = null
description = "Hetzner Cloud CSI driver version"
}
variable "cert_manager_version" {
type = string
default = null
description = "cert-manager Helm chart version"
}
variable "longhorn_version" {
type = string
default = null
description = "Longhorn Helm chart version"
}
variable "headlamp_version" {
type = string
default = null
description = "Headlamp Helm chart version"
}
variable "write_config_files" {
type = bool
default = false
description = "write SSK private key and client config if true"
}
variable "acme_email" {
type = string
default = null
description = "Let's Encrypt ACME registration e-mail; if set it will create the cluster issuer"
}
variable "use_staging_issuer" {
type = bool
default = false
description = "Use a staging issuer for the cert-manager"
}
variable "use_hcloud_storage" {
type = bool
default = false
description = "deploy Hetzner Cloud CSI driver if true"
}
variable "use_longhorn" {
type = bool
default = false
description = "deploy Longhorn distributed block storage if true"
}
variable "longhorn_password" {
type = string
default = null
sensitive = true
description = "password for Longhorn UI"
}
variable "longhorn_backup_target" {
type = string
default = null
description = "Longhorn S3 backup target"
}
variable "longhorn_aws_endpoints" {
type = string
default = null
description = "Longhorn S3 backup endpoints, must be defined if not using AWS"
}
variable "longhorn_aws_access_key_id" {
type = string
default = null
description = "Longhorn S3 backup access key ID"
}
variable "longhorn_aws_secret_access_key" {
type = string
sensitive = true
default = null
description = "Longhorn S3 backup secret access key"
}
variable "use_headlamp" {
type = bool
default = false
description = "deploy Headlamp Kubernetes UI if true"
}