Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit bc03609

Browse files
authored
Update main.tf
provides fixes for new Terraform version
1 parent 646ab4a commit bc03609

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

terraform/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module "bastion" {
6363
resource "google_container_cluster" "primary" {
6464
name = var.cluster_name
6565
project = var.project
66-
zone = var.zone
66+
location = var.zone
6767
network = module.network.network_self_link
6868
subnetwork = module.network.subnet_self_link
6969
min_master_version = data.google_container_engine_versions.on-prem.latest_master_version
@@ -72,8 +72,7 @@ resource "google_container_cluster" "primary" {
7272
lifecycle {
7373
ignore_changes = [ip_allocation_policy.0.services_secondary_range_name]
7474
}
75-
76-
additional_zones = []
75+
7776

7877
// Scopes necessary for the nodes to function correctly
7978
node_config {
@@ -108,6 +107,7 @@ resource "google_container_cluster" "primary" {
108107
// private. Nodes communicate to the master through this private IP address.
109108
private_cluster_config {
110109
enable_private_nodes = true
110+
enable_private_endpoint = false
111111
master_ipv4_cidr_block = "10.0.90.0/28"
112112
}
113113

0 commit comments

Comments
 (0)