-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
61 lines (54 loc) · 1.22 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
variable "name" {
type = string
description = "Name of cluster"
}
variable "location" {
type = string
description = "Cluster region or zone"
}
variable "project_id" {
type = string
description = "Project ID"
}
variable "cluster_type" {
type = string
description = "regional or zonal cluster"
}
variable "k8s_version" {
type = string
description = "Kubernetes version"
}
variable "remove_default_node_pool" {
type = bool
description = "Delete the default node pool after the cluster is created"
default = false
}
variable "default_node_pool" {
type = object({
machine_type = string
disk_type = string
disk_size_gb = number
preemptible = bool
count = number
})
description = "Nodes in the default node pool"
default = {
machine_type = "f1-micro"
disk_type = "pd-standard"
disk_size_gb = 20
preemptible = false
count = 3
}
}
variable "node_pools" {
type = list(object({
name = string
machine_type = string
disk_type = string
disk_size_gb = number
preemptible = bool
count = number
}))
description = "Type of nodes and number for each"
default = []
}