This repository has been archived by the owner on Jan 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
variables.tf
110 lines (99 loc) · 4.01 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
# For more details please see the following pages :
# https://www.terraform.io/docs/providers/google/r/container_cluster.html
# https://www.terraform.io/docs/providers/google/r/container_node_pool.html
# https://www.terraform.io/docs/providers/google/d/google_container_engine_versions.html
# https://www.terraform.io/docs/providers/google/d/google_container_registry_repository.html
##########################
### GKE ###
##########################
# Parameters authorized:
# name (mandatory)
# location (mandatory)
# env (mandatory)
variable "general" {
type = "map"
description = "Global parameters"
}
# Parameters authorized:
# network (default: default)
# subnetwork (default: default)
# disable_horizontal_pod_autoscaling (default: false)
# disable_http_load_balancing (default: false)
# disable_kubernetes_dashboard (default: false)
# disable_network_policy_config (default: true)
# enable_kubernetes_alpha (default: false)
# enable_legacy_abac (default: false)
# maintenance_window (default: 4:30)
# version (default: Data resource)
# monitoring_service (default: none)
# logging_service (default: logging.googleapis.com)
variable "master" {
type = "map"
description = "Kubernetes master parameters to initialize"
}
# Parameters authorized:
# node_count (default: 2)
# remove (default: false)
# disk_size_gb (default: 10)
# disk_type (default: pd-standard)
# image (default: COS)
# local_ssd_count (default: 0)
# oauth_scopes (default: https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/logging.write,https://www.googleapis.com/auth/monitoring)
# machine_type (default: n1-standard-1)
# preemptible (default: false)
# service_account (default: default)
variable "default_node_pool" {
type = "map"
default = {}
description = "Default pool setting"
}
# Parameters authorized:
# node_count (default: 3)
# machine_type (default: n1-standard-1)
# disk_size_gb (default: 10)
# preemptible (default: false)
# local_ssd_count (default: 0)
# oauth_scopes (default: https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/logging.write,https://www.googleapis.com/auth/monitoring)
# min_node_count (default: 1)
# max_node_count (default: 3)
# auto_repair (default: true)
# auto_upgrade (default: true)
# metadata (default: {})
variable "node_pool" {
type = "list"
default = []
description = "Node pool setting to create"
}
# https://www.terraform.io/docs/providers/google/r/container_cluster.html#tags
variable "tags" {
type = "list"
default = []
description = "The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls"
}
# https://www.terraform.io/docs/providers/google/r/container_cluster.html#labels
variable "labels" {
description = "The Kubernetes labels (key/value pairs) to be applied to each node"
type = "map"
default = {}
}
# https://www.terraform.io/docs/providers/google/r/container_cluster.html#metadata
variable "metadata" {
description = "The metadata key/value pairs assigned to instances in the cluster"
type = "map"
default = {}
}
##########################
### NODE GKE ###
##########################
# https://www.terraform.io/docs/providers/google/r/container_cluster.html#additional_zones
variable "node_additional_zones" {
type = "list"
default = []
description = "The list of additional Google Compute Engine locations in which the cluster's nodes should be located. If additional zones are configured, the number of nodes specified in initial_node_count is created in all specified zones"
}
# https://www.terraform.io/docs/providers/google/r/container_cluster.html#ip_allocation_policy
variable "ip_allocation_policy" {
type = "list"
default = []
description = "Configuration for cluster IP allocation. As of now, only pre-allocated subnetworks (custom type with secondary ranges) are supported"
}