-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
120 lines (101 loc) · 3.1 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
variable "project_id" {
description = "The ID of the project"
type = string
}
variable "project_name" {
description = "The name of the project"
type = string
}
variable "cluster_region" {
description = "The region of the cluster"
type = string
default = "us-central1"
}
variable "cluster_zones" {
description = "The zones of the cluster"
type = list(string)
default = ["us-central1-a"]
}
variable "node_pool_machine_type" {
description = "Machine type for node pools"
type = string
default = "n1-standard-1"
}
variable "node_pool_disk_size" {
description = "Disk size for node pools"
type = number
default = 30
}
variable "node_pool_disk_type" {
description = "Disk type for node pools"
type = string
default = "pd-balanced"
}
variable "node_pool_autoupgrade" {
description = "Autoupgrade for node pools"
type = bool
default = true
}
variable "node_pool_preemptible" {
description = "Preemptible for node pools"
type = bool
default = false
}
variable "node_pool_nodes_max_count" {
description = "Maximum number of nodes in node pools"
type = number
default = 3
}
variable "cluster_issuer_email" {
description = "The email of the cluster issuer (works only if `install_nginx_ingress_and_cert_manager` set as true)"
type = string
}
variable "cluster_issuer_server" {
description = "The server of the cluster issuer (works only if `install_nginx_ingress_and_cert_manager` set as true)"
type = string
default = "https://acme-v02.api.letsencrypt.org/directory"
}
variable "logging_service" {
description = "The logging service"
type = string
default = "none"
}
variable "monitoring_service" {
description = "The monitoring service"
type = string
default = "none"
}
variable "is_prometheus_metrics_enabled" {
description = "Enable Prometheus metrics"
type = bool
default = false
}
variable "install_nginx_ingress_and_cert_manager" {
description = "Install nginx ingress and cert manager"
type = bool
default = true
}
variable "cert_manager_additional_solvers" {
description = "Additional solvers for cert-manager (works only if `install_nginx_ingress_and_cert_manager` set as true)"
type = list(any)
default = []
}
variable "nginx_controller_additional_set" {
description = "Additional set for nginx-controller (works only if `install_nginx_ingress_and_cert_manager` set as true)"
type = list(any)
default = []
}
variable "cluster_release_channel" {
description = "Cluster release channel (UNSPECIFIED, RAPID, REGULAR and STABLE). Defaults to UNSPECIFIED."
type = string
default = "UNSPECIFIED"
}
variable "environment_name" {
description = "The name of the environment"
type = string
default = "cloud"
validation {
condition = length(regexall("^(development|production|staging|cloud)$", var.environment_name)) > 0
error_message = "ERROR: Valid types are \"development\", \"production\", \"staging\", and \"cloud\"!"
}
}