forked from equinix-labs/terraform-equinix-metal-k3s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
36 lines (33 loc) · 1.24 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
variable "metal_project_id" {
type = string
description = "Equinix Metal Project ID"
}
variable "global_ip" {
type = bool
description = "Enables a global anycast IPv4 that will be shared for all clusters in all metros"
default = false
}
variable "deploy_demo" {
type = bool
description = "Deploys a simple demo using a global IP as ingress and a hello-kubernetes pods"
default = false
}
variable "clusters" {
description = "K3s cluster definition"
type = list(object({
name = optional(string, "K3s demo cluster")
metro = optional(string, "FR")
plan_control_plane = optional(string, "c3.small.x86")
plan_node = optional(string, "c3.small.x86")
node_count = optional(number, 0)
k3s_ha = optional(bool, false)
os = optional(string, "debian_11")
control_plane_hostnames = optional(string, "k3s-cp")
node_hostnames = optional(string, "k3s-node")
custom_k3s_token = optional(string, "")
ip_pool_count = optional(number, 0)
k3s_version = optional(string, "")
metallb_version = optional(string, "")
}))
default = [{}]
}