-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables-provider.tf
63 lines (54 loc) · 1.27 KB
/
variables-provider.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
## Provider specific variables
variable "region" {
description = "Cluster Region"
type = string
default = "unknown"
}
variable "get_kubeconfig_command" {
description = "Command to create/update kubeconfig"
type = string
default = "kind export kubeconfig --name $CLUSTER_NAME"
}
variable "kubernetes_version" {
description = "Kubernetes version"
type = string
default = "1.29"
}
variable "kubeadm_config_patches" {
description = "Patches to apply on each node group"
type = any
default = {
master : []
infra : [
<<-EOT
kind: JoinConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "role=infra"
EOT
]
app : [
<<-EOT
kind: JoinConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "role=app"
EOT
]
}
}
variable "http_port" {
description = "Host port to expose container HTTP ingress port"
type = number
default = 8080
}
variable "https_port" {
description = "Host port to expose container HTTPS ingress port"
type = number
default = 8443
}
variable "ssh_port" {
description = "Host port to expose container HTTP ingress port"
type = number
default = 2222
}