-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
138 lines (107 loc) · 4.31 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
variable "project" {
description = "GCP project to create the resources in"
}
variable "env_label" {
description = "Environment label: test, dev, prod"
}
variable "cluster_name" {
description = "Name of the GKE cluster, will also be used as a part of the name for related resources like Cloud SQL instance and persistent disk."
}
# cluster region is needed for cloudsql instance and artifact store disc snapshot
variable "cluster_region" {
description = "The region of the cluster and is also used for Cloud SQL instance and artifact store Persistent Disk snapshot."
}
# TODO: support for a regional cluster? https://cloud.google.com/kubernetes-engine/docs/concepts/regional-clusters
variable "cluster_zone" {
description = "The location of the cluster - can be a zone or region name. Set to zone name for zonal clusters, region name for regional clusters."
}
variable "min_master_version" {
description = "Minimum version of Kubernetes to install on master (optional), see https://www.terraform.io/docs/providers/google/r/container_cluster.html#min_master_version"
default = ""
}
variable "node_version" {
description = "(optional) https://www.terraform.io/docs/providers/google/r/container_cluster.html#node_version"
default = ""
}
variable "network" {
description = "Set this to the network of another project (along with subnetwork, cluster_secondary_range_name, and services_secondary_range_name, to enable Shared VPC. Set to network of project for non-Shared VPC. https://www.terraform.io/docs/providers/google/r/container_cluster.html#network"
}
variable "subnetwork" {
description = "https://www.terraform.io/docs/providers/google/r/container_cluster.html#subnetwork"
}
variable "cluster_secondary_range_name" {
description = "Only set for Shared VPC clusters. https://www.terraform.io/docs/providers/google/r/container_cluster.html#cluster_secondary_range_name"
# default to not Shared VPC
default = ""
}
variable "services_secondary_range_name" {
description = "Only set for Shared VPC clusters. https://www.terraform.io/docs/providers/google/r/container_cluster.html#services_ipv4_cidr_block"
# default to not Shared VPC
default = ""
}
variable "disable_googleapi_services_on_destroy" {
description = "Whether to disable googleapi services when project is destroyed. https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_project_service#disable_on_destroy"
# default to not disable services
default = "false"
}
variable "initial_node_count" {
default = 1
}
variable "main_node_pool_min_nodes" {
description = "Value to set for min node count for cluster autoscaler for the main node pool."
}
variable "main_node_pool_max_nodes" {
description = "Value to set for max node count for cluster autoscaler for the main node pool."
}
variable "max_pods_per_node" {
description = "Sets the default_max_pods_per_node setting on the container_cluster resource."
default = 110
}
variable "auto_repair" {
default = "true"
}
variable "auto_upgrade" {
default = "true"
}
variable "main_node_pool_machine_type" {
default = "n1-standard-8"
}
variable "gpu_node_pool_machine_type" {
default = "n1-standard-8"
}
variable "gpu_type" {
default = "nvidia-tesla-v100"
}
variable "highmem_node_pool_machine_type" {
default = "n2-highmem-16"
}
variable "issue_client_certificate" {
description = "Ideally this should always be set to false, this feature is going away eventually. https://www.terraform.io/docs/providers/google/r/container_cluster.html#client_certificate_config"
default = false
}
variable "timeout" {
default = "30m"
}
variable "main_node_pool_name" {
}
variable "gpu_node_pool_name" {
}
variable "highmem_node_pool_name" {
}
variable "upstream_nameservers" {
description = "List of upstream DNS resolvers (IP addresses) to set in kube-dns ConfigMap as upstreamResolvers, max of 3"
}
variable "istio_enabled" {
description = "Boolean, if Istio is enabled (in Kubeflow versions 0.6 and greater)"
default = false
}
variable "network_policy_enabled" {
description = "Boolean, to enable Network Policy or not"
default = true
}
variable "mysql_developer_password" {
description = "CloudSQL MySQL instance developer user password"
}
variable "mysql_read_only_user_password" {
description = "CloudSQL MySQL instance read only user password"
}