Fix ip exhaustion by increasing services ip address range.

This commit is contained in:
Tom Alexander
2021-07-13 20:50:43 -04:00
parent 2cf9f93de6
commit 40f4a8c398
4 changed files with 22 additions and 37 deletions

View File

@@ -39,11 +39,6 @@ resource "google_compute_subnetwork" "subnet" {
ip_cidr_range = "10.100.0.0/16"
region = var.region
network = google_compute_network.private_network.id
secondary_ip_range {
range_name = "private-subnetwork-secondary"
ip_cidr_range = "192.168.10.0/24"
}
}
resource "google_compute_global_address" "private_ip_address" {
@@ -51,7 +46,7 @@ resource "google_compute_global_address" "private_ip_address" {
name = "private-ip-address"
purpose = "VPC_PEERING"
address_type = "INTERNAL"
prefix_length = 24
prefix_length = 16
network = google_compute_network.private_network.id
}