-
Notifications
You must be signed in to change notification settings - Fork 0
/
gke.tf
25 lines (24 loc) · 1.04 KB
/
gke.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
module "gke-test" {
source = "terraform-google-modules/kubernetes-engine/google"
project_id = module.project.project_id
name = "test"
region = var.region
network = module.vpc.network_name
subnetwork = module.vpc.subnets_names[0]
ip_range_pods = "${var.subnet}-gke-test-pods"
ip_range_services = "${var.subnet}-gke-test-services"
remove_default_node_pool = true
grant_registry_access = true
}
module "gke-prod" {
source = "terraform-google-modules/kubernetes-engine/google"
project_id = module.project.project_id
name = "prod"
region = var.region
network = module.vpc.network_name
subnetwork = module.vpc.subnets_names[0]
ip_range_pods = "${var.subnet}-gke-prod-pods"
ip_range_services = "${var.subnet}-gke-prod-services"
remove_default_node_pool = true
grant_registry_access = true
}