-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathmodules.tf
More file actions
34 lines (31 loc) · 1005 Bytes
/
modules.tf
File metadata and controls
34 lines (31 loc) · 1005 Bytes
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
module "vpc" {
source = "./modules/vpc"
name = "${ var.name }"
cidr = "${ var.cidr }"
region = "${ var.region }"
}
module "cluster" {
source = "./modules/cluster"
name = "${ var.name }"
region = "${ var.region }"
zone = "${ var.zone }"
node_count = "${ var.node_count }"
image_type = "${ var.image_type }"
network = "${ var.name }"
subnetwork = "${ var.name }"
min_master_version = "${ var.min_master_version }"
node_version = "${ var.node_version }"
master_user = "${ var.master_user }"
master_password = "${ var.master_password }"
vm_size = "${ var.vm_size }"
data_dir = "${ var.data_dir }"
}
# module "kubeconfig" {
# source = "../kubeconfig"
# ca = "${base64decode(module.cluster.ca)}"
# client = "${base64decode(module.cluster.client)}"
# client_key = "${base64decode(module.cluster.client_key)}"
# endpoint = "${ module.cluster.endpoint }"
# data_dir = "${ var.data_dir }"
# name = "gke_${ var.google_project }_${ var.zone }-a_${ var.name }"
# }