-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
144 lines (116 loc) · 3.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
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
variable "project_id" {
description = "GCP project id (gcloud projects list)"
type = string
}
variable "region" {
description = "the gcp region we do all of this in"
type = string
}
variable "main_availability_zone" {
description = "the gcp region we do all of this in"
type = string
}
variable "state_bucket_name" {
description = "the name of the bucker we are going to store our state in"
type = string
}
variable "state_path" {
description = "directory where we store state"
type = string
}
variable "vpc_network_name" {
description = "name of the VPC network our machines will live in"
type = string
}
variable "vpc_network_subnet_name" {
description = "name of the VPC subnetwork our machines will live in"
type = string
}
variable "use_default_node_pool" {
description = "True=use the deafult GKE node pool, Fale=use seprately managed pool"
type = bool
}
variable "initial_node_count" {
description = "Number of nodes the GKE cluster starts with"
type = number
default = 1
}
variable "cluster_name" {
description = "Name of the GKE cluster we will create"
type = string
}
variable "node_service_account" {
description = "The SA we will use to control nodes on the GKE cluster"
type = string
}
variable "autoscaling_enabled" {
description = "set autoscaling true or false"
type = bool
default = false
}
variable "autoscaling_min_nodes" {
description = "min number of nodes allocation"
type = number
default = 1
}
variable "autoscaling_max_nodes" {
description = "max number of nodes allowed"
type = number
default = 1
}
/*
variable "autoscaling_min_cpu" {
description = "min cpu allocation"
type = number
}
variable "autoscaling_max_cpu" {
description = "max cpu allowed"
type = number
}
variable "autoscaling_min_mem" {
description = "min memory allocation"
type = number
}
variable "autoscaling_max_mem" {
description = "max memory allocation"
type = number
}
*/
variable "autoscaling_strategy" {
description = "GKE autoscaling strategy"
type = string
}
/*
variable "container_image" {
description = "docker or container repo image url "
type = string
}
variable "container_name" {
description = "name of the container"
type = string
}
variable "replicas" {
description = "number of replicas"
type = number
}
*/
variable "machine_type" {
description = " The virtual amchine type to use for the node pool"
type = string
}
variable "disk_type" {
description = " 'pd-standard', 'pd-balanced' or 'pd-ssd' "
type = string
}
variable "disk_size" {
description = "Default size of the node Disk"
type = string
}
variable "guest_accelerator" {
description = "GPU or TPU to attach to the virtual-machine."
type = string
}
variable "guest_accelerator_count" {
description = "Number of accelerators to attach to each machine"
type = number
}