Refactor GKE cluster modules access configurations, add support for DNS endpoint (#2761)

* stub

* gke standard module and tests

* blueprints

* tfdoc

* autopilot

* blueprints

* tfdoc

* gke hub module examples

* dataproc and gke fixture
This commit is contained in:
Ludovico Magnocavallo
2024-12-12 11:02:24 +01:00
committed by GitHub
parent d59d182456
commit d86b8d565c
31 changed files with 1143 additions and 381 deletions

View File

@@ -18,18 +18,17 @@ module "gke-cluster-standard" {
name = "cluster"
location = "${var.region}-b"
deletion_protection = false
access_config = {
ip_access = {
authorized_ranges = {
internal-vms = "10.0.0.0/8"
}
}
}
vpc_config = {
network = var.vpc.self_link
subnetwork = var.subnet.self_link
secondary_range_names = {} # use default names "pods" and "services"
master_authorized_ranges = {
internal-vms = "10.0.0.0/8"
}
master_ipv4_cidr_block = "192.168.0.0/28"
}
private_cluster_config = {
enable_private_endpoint = true
master_global_access = false
}
enable_features = {
dataplane_v2 = true