-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
191 lines (154 loc) · 5.46 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/**
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
variable "project_id" {
description = "The project ID to host the cluster in (required)"
}
variable "name" {
description = "The name of the cluster (required)"
}
variable "description" {
description = "The description of the cluster"
default = ""
}
variable "regional" {
description = "Whether is a regional cluster (zonal cluster if set false. WARNING: changing this after cluster creation is destructive!)"
default = true
}
variable "region" {
description = "The region to host the cluster in (required)"
}
variable "zones" {
type = "list"
description = "The zones to host the cluster in (optional if regional cluster / required if zonal)"
default = []
}
variable "network" {
description = "The VPC network to host the cluster in (required)"
}
variable "network_project_id" {
description = "The project ID of the shared VPC's host (for shared vpc support)"
default = ""
}
variable "subnetwork" {
description = "The subnetwork to host the cluster in (required)"
}
variable "kubernetes_version" {
description = "The Kubernetes version of the masters. If set to 'latest' it will pull latest available version in the selected region."
default = "latest"
}
variable "node_version" {
description = "The Kubernetes version of the node pools. Defaults kubernetes_version (master) variable and can be overridden for individual node pools by setting the `version` key on them. Must be empyty or set the same as master at cluster creation."
default = ""
}
variable "master_authorized_networks_config" {
type = "list"
description = <<EOF
The desired configuration options for master authorized networks. Omit the nested cidr_blocks attribute to disallow external access (except the cluster node IPs, which GKE automatically whitelists)
### example format ###
master_authorized_networks_config = [{
cidr_blocks = [{
cidr_block = "10.0.0.0/8"
display_name = "example_network"
}],
}]
EOF
default = []
}
variable "horizontal_pod_autoscaling" {
description = "Enable horizontal pod autoscaling addon"
default = false
}
variable "http_load_balancing" {
description = "Enable httpload balancer addon"
default = true
}
variable "kubernetes_dashboard" {
description = "Enable kubernetes dashboard addon"
default = false
}
variable "network_policy" {
description = "Enable network policy addon"
default = false
}
variable "maintenance_start_time" {
description = "Time window specified for daily maintenance operations in RFC3339 format"
default = "05:00"
}
variable "ip_range_pods" {
description = "The secondary ip range to use for pods"
}
variable "ip_range_services" {
description = "The secondary ip range to use for pods"
}
variable "node_pools" {
type = "list"
description = "List of maps containing node pools"
default = [
{
name = "default-node-pool"
},
]
}
variable "node_pools_labels" {
type = "map"
description = "Map of maps containing node labels by node-pool name"
default = {
all = {}
default-node-pool = {}
}
}
variable "node_pools_taints" {
type = "map"
description = "Map of lists containing node taints by node-pool name"
default = {
all = []
default-node-pool = []
}
}
variable "node_pools_tags" {
type = "map"
description = "Map of lists containing node network tags by node-pool name"
default = {
all = []
default-node-pool = []
}
}
variable "stub_domains" {
type = "map"
description = "Map of stub domains and their resolvers to forward DNS queries for a certain domain to an external DNS server"
default = {}
}
variable "non_masquerade_cidrs" {
type = "list"
description = "List of strings in CIDR notation that specify the IP address ranges that do not use IP masquerading."
default = ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
}
variable "ip_masq_resync_interval" {
description = "The interval at which the agent attempts to sync its ConfigMap file from the disk."
default = "60s"
}
variable "ip_masq_link_local" {
description = "Whether to masquerade traffic to the link-local prefix (169.254.0.0/16)."
default = "false"
}
variable "logging_service" {
description = "The logging service that the cluster should write logs to. Available options include logging.googleapis.com, logging.googleapis.com/kubernetes (beta), and none"
default = "logging.googleapis.com"
}
variable "monitoring_service" {
description = "The monitoring service that the cluster should write metrics to. Automatically send metrics from pods in the cluster to the Google Cloud Monitoring API. VM metrics will be collected by Google Compute Engine regardless of this setting Available options include monitoring.googleapis.com, monitoring.googleapis.com/kubernetes (beta) and none"
default = "monitoring.googleapis.com"
}