-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
172 lines (142 loc) · 3.96 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
variable "environment" {
description = "environment name to identify permanent resources"
}
variable "cluster_prefix" {
description = "name to identify resources associated with the kubernetes cluster"
}
variable "project_id" {
description = "google project id"
}
variable "region" {
description = "region"
}
variable "zone" {
description = "zone"
}
variable "network" {
type = string
description = "the self_link of the vpc network to put the cluster on "
}
variable "subnetwork"{
type = string
description ="the self_link of the vpc subnetwork to put the cluster on"
}
variable "gcp_user_account" {
description = "The GCP user account for creating ClusterRoleBinding"
}
variable "letsencrypt_email" {
description = "email to use for getting certificates"
type = string
}
variable "sql_instance_name" {
description = "Name of the SQL instance"
}
variable "postgres_user_password" {
description = "Password for the database writer"
}
variable "dns_zone" {
description = "The name of the DNS managed zone"
type = string
}
variable "domain_name" {
description = "The DNS name associated with this managed zone"
type = string
}
variable "dns_entries" {
description = "Map of DNS entries, where each key is a unique identifier, and each value contains zone and domain name details."
type = map(object({
zone = string
domain_name = string
}))
}
variable "pcg_bucket_name" {
description = "name of bucket where bigtable needs to read and write data"
type = string
}
variable "owner" {
type = string
description = "added as label to resources, convenient to filter costs based on labels"
default = "na"
}
# define the machine types
variable "standard_machine_type" {
type = string
default = "t2d-standard-4"
description = "VM instance type for standard pool"
}
variable "lightweight_machine_type" {
type = string
default = "e2-small"
description = "VM instance type for lightweight pool"
}
variable "mesh_machine_type" {
type = string
default = "t2d-standard-4"
description = "VM instance type for mesh pool"
}
variable "core_machine_type" {
type = string
default = "e2-standard-2"
description = "VM instance type for mesh pool"
}
# define autoscaling parameters
variable "max_nodes_standard_pool" {
type = number
default = 10
description = "Maximum size of standard pool"
}
variable "max_nodes_lightweight_pool" {
type = number
default = 10
description = "Maximum size of lightweight pool"
}
variable "max_nodes_mesh_pool" {
type = number
default = 50
description = "Maximum size of mesh pool"
}
variable "max_nodes_core_pool" {
type = number
default = 4
description = "Maximum size of lightweight pool"
}
variable "postgres_write_user" {
description = "Username for the database writer"
default = "postgres"
}
variable "bigtable_instance_name" {
description = "Name of the bigtable instance to be used by pychunkedgraph and l2cache"
type = string
default = "pychunkedgraph"
}
variable "bigtable_google_project" {
description = <<EOF
"name of the google project your bigtable sits in.
Use only if it sits in a different project. Note: you will need to create
a service account with the proper permissions"
EOF
type = string
default = ""
}
variable "pcg_redis_host" {
type = string
description = "pcg redis ip"
}
variable "mat_redis_host" {
type = string
description = "pcg redis ip"
}
variable "letsencrypt_issuer_name" {
type = string
default = "letsencrypt-staging"
description = "which certificate issuer to configure cert-manager with"
}
variable "letsencrypt_server" {
description = "ACME server URL"
type = string
default = "https://acme-v02.api.letsencrypt.org/directory"
}
variable "helm_config_dir" {
description = "directory to save helm configuration files"
type = string
}