Skip to content

Commit

Permalink
Add private cluster config block to private clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
Jberlinsky committed Jan 5, 2019
1 parent b60bc10 commit 719ee8b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cluster_regional_private.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ resource "google_container_cluster" "primary_private" {
service_account = "${lookup(var.node_pools[0], "service_account", var.service_account)}"
}
}

private_cluster_config {
enable_private_endpoint = "${var.private_enable_private_endpoint}"
enable_private_nodes = "${var.private_enable_private_nodes}"
master_ipv4_cidr_block = "${var.private_master_ipv4_cidr_block}"
}
}

/******************************************
Expand Down
6 changes: 6 additions & 0 deletions cluster_zonal_private.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ resource "google_container_cluster" "zonal_primary_private" {
service_account = "${lookup(var.node_pools[0], "service_account", var.service_account)}"
}
}

private_cluster_config {
enable_private_endpoint = "${var.private_enable_private_endpoint}"
enable_private_nodes = "${var.private_enable_private_nodes}"
master_ipv4_cidr_block = "${var.private_master_ipv4_cidr_block}"
}
}

/******************************************
Expand Down

0 comments on commit 719ee8b

Please sign in to comment.