-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvariables.tf
119 lines (100 loc) · 2.86 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
# Equinix Provider vars
variable "metal_project_id" {
description = "Equinix project ID"
sensitive = true
type = string
}
variable "metal_auth_token" {
description = "Equinix provider user auth token"
sensitive = true
type = string
}
variable "metal_metro" {
description = "Metro of choice"
type = string
default = "da"
}
# K8s cluster vars
variable "cpem_version" {
description = "Version of the CPEM"
type = string
default = "v3.6.2"
}
variable "kube_vip_version" {
description = "KubeVip version of choice"
type = string
default = "v0.6.2"
}
variable "kubernetes_version" {
description = "Kubernetes version. See https://www.downloadkubernetes.com/"
type = string
default = "v1.27.5"
}
variable "ssh_private_key_path" {
description = "Path of the private key used to SSH into cluster nodes"
sensitive = true
type = string
default = ""
}
variable "tags" {
type = list(any)
description = "String list of common tags for Equinix resources"
default = ["k8s-cluster-cluster1", "k8s-nodepool-pool1"]
}
# Control Plane hosts vars
variable "cp_ha" {
description = "Whether to enable HA in Kubernetes control plane nodes"
type = bool
default = true
}
variable "k8s_cluster_cp_hostname" {
description = "Hostname of each node in the control plane cluster"
type = string
default = "k8s-cluster1-pool1-cp"
}
variable "k8s_cluster_cp_plan" {
description = "Plan of the nodes in the control plane cluster"
type = string
default = "m3.small.x86"
}
variable "k8s_cluster_cp_os" {
description = "OS of the nodes in the control plane cluster"
type = string
default = "ubuntu_20_04"
}
variable "k8s_cluster_cp_billing_cycle" {
description = "Billing Cycle of the nodes in the control plane cluster"
type = string
default = "hourly"
}
# Worker hosts vars
variable "worker_host_count" {
description = "Number of worker nodes"
type = number
default = 1
}
variable "k8s_cluster_worker_hostname" {
description = "Hostname of each node in the worker cluster"
type = string
default = "k8s-cluster1-pool1-worker"
}
variable "k8s_cluster_worker_plan" {
description = "Plan of the nodes in the worker cluster"
type = string
default = "m3.small.x86"
}
variable "k8s_cluster_worker_os" {
description = "OS of the nodes in the worker cluster"
type = string
default = "ubuntu_20_04"
}
variable "k8s_cluster_worker_billing_cycle" {
description = "Billing Cycle of the nodes in the worker cluster"
type = string
default = "hourly"
}
variable "cloud_provider_external" {
description = "Toggle to enable name of the cloud provider to be passed to kubeadm. Ex: --cloud-provider='external'"
type = bool
default = true
}