
This is a terraform config demonstrating spinning up 14 clusters in only a /26 (64 addresses) to demonstrate the GKE clusters do not need to consume large amounts of RFC1918 IP addresses.
77 lines
3.0 KiB
HCL
77 lines
3.0 KiB
HCL
# TODO: Make public IP quota dependent on var.public_ingress and update the amount to match what is expected to be spun up.
|
|
|
|
# resource "google_cloud_quotas_quota_preference" "clusters_per_region" {
|
|
# count = var.quota_email == null ? 0 : 1
|
|
# parent = "projects/${google_project.project.project_id}"
|
|
# name = "container-clusters_per_region"
|
|
# dimensions = { region = var.region }
|
|
# service = "container.googleapis.com"
|
|
# quota_id = "ClustersPerRegion"
|
|
# contact_email = var.quota_email
|
|
# quota_config {
|
|
# preferred_value = 70
|
|
# }
|
|
# justification = var.quota_justification
|
|
# depends_on = [google_project_service.service["cloudquotas"], ]
|
|
# }
|
|
|
|
# resource "google_cloud_quotas_quota_preference" "public_ip_per_project_region" {
|
|
# count = var.quota_email == null ? 0 : 1
|
|
# parent = "projects/${google_project.project.project_id}"
|
|
# name = "compute-IN-USE-ADDRESSES-per-project-region"
|
|
# dimensions = { region = var.region }
|
|
# service = "compute.googleapis.com"
|
|
# quota_id = "IN-USE-ADDRESSES-per-project-region"
|
|
# contact_email = var.quota_email
|
|
# quota_config {
|
|
# preferred_value = 70
|
|
# }
|
|
# justification = var.quota_justification
|
|
# depends_on = [google_project_service.service["cloudquotas"], ]
|
|
# }
|
|
|
|
# resource "google_cloud_quotas_quota_preference" "compute_vm_instances" {
|
|
# count = var.quota_email == null ? 0 : 1
|
|
# parent = "projects/${google_project.project.project_id}"
|
|
# name = "compute-INSTANCES-per-project-region"
|
|
# dimensions = { region = var.region }
|
|
# service = "compute.googleapis.com"
|
|
# quota_id = "INSTANCES-per-project-region"
|
|
# contact_email = var.quota_email
|
|
# quota_config {
|
|
# preferred_value = 150
|
|
# }
|
|
# justification = var.quota_justification
|
|
# depends_on = [google_project_service.service["cloudquotas"], ]
|
|
# }
|
|
|
|
# resource "google_cloud_quotas_quota_preference" "compute_cpus" {
|
|
# count = var.quota_email == null ? 0 : 1
|
|
# parent = "projects/${google_project.project.project_id}"
|
|
# name = "compute-CPUS-per-project-region"
|
|
# dimensions = { region = var.region }
|
|
# service = "compute.googleapis.com"
|
|
# quota_id = "CPUS-per-project-region"
|
|
# contact_email = var.quota_email
|
|
# quota_config {
|
|
# preferred_value = 150
|
|
# }
|
|
# justification = var.quota_justification
|
|
# depends_on = [google_project_service.service["cloudquotas"], ]
|
|
# }
|
|
|
|
# resource "google_cloud_quotas_quota_preference" "compute_cpus_all_regions" {
|
|
# count = var.quota_email == null ? 0 : 1
|
|
# parent = "projects/${google_project.project.project_id}"
|
|
# name = "compute-CPUS-ALL-REGIONS-per-project"
|
|
# dimensions = {}
|
|
# service = "compute.googleapis.com"
|
|
# quota_id = "CPUS-ALL-REGIONS-per-project"
|
|
# contact_email = var.quota_email
|
|
# quota_config {
|
|
# preferred_value = 150
|
|
# }
|
|
# justification = var.quota_justification
|
|
# depends_on = [google_project_service.service["cloudquotas"], ]
|
|
# }
|