-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathmain.tf
More file actions
60 lines (50 loc) · 1.15 KB
/
main.tf
File metadata and controls
60 lines (50 loc) · 1.15 KB
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
provider "google-beta" {
version = "~> 2.0"
project = "${var.project}"
region = "${var.region}"
zone = "${var.zone}"
}
variable "project" {
type = "string"
}
variable "region" {
type = "string"
default = "europe-west3"
}
variable "zone" {
type = "string"
default = "europe-west3-a"
}
variable "zones" {
type = "list"
default = ["europe-west3-a", "europe-west3-b"]
}
variable "preemptible" {
default = false
}
variable "cluster_name" {
type = "string"
}
variable "system_node_type" {
type = "string"
default = "n1-standard-2"
}
variable "database_node_type" {
type = "string"
default = "n1-standard-2"
}
variable "wordpress_node_type" {
type = "string"
default = "n1-standard-4"
}
module "stack" {
source = "../../modules/gke"
cluster_name = "${var.cluster_name}"
project = "${var.project}"
region = "${var.region}"
zones = "${var.zones}"
preemptible = "${var.preemptible}"
system_node_type = "${var.system_node_type}"
database_node_type = "${var.database_node_type}"
wordpress_node_type = "${var.wordpress_node_type}"
}