Skip to content

Commit 719ee8b

Browse files
committed
Add private cluster config block to private clusters
1 parent b60bc10 commit 719ee8b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

cluster_regional_private.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ resource "google_container_cluster" "primary_private" {
8282
service_account = "${lookup(var.node_pools[0], "service_account", var.service_account)}"
8383
}
8484
}
85+
86+
private_cluster_config {
87+
enable_private_endpoint = "${var.private_enable_private_endpoint}"
88+
enable_private_nodes = "${var.private_enable_private_nodes}"
89+
master_ipv4_cidr_block = "${var.private_master_ipv4_cidr_block}"
90+
}
8591
}
8692

8793
/******************************************

cluster_zonal_private.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ resource "google_container_cluster" "zonal_primary_private" {
8282
service_account = "${lookup(var.node_pools[0], "service_account", var.service_account)}"
8383
}
8484
}
85+
86+
private_cluster_config {
87+
enable_private_endpoint = "${var.private_enable_private_endpoint}"
88+
enable_private_nodes = "${var.private_enable_private_nodes}"
89+
master_ipv4_cidr_block = "${var.private_master_ipv4_cidr_block}"
90+
}
8591
}
8692

8793
/******************************************

0 commit comments

Comments
 (0)