From 7ad8320b7fefe5d99b45b281ff7581a1f2f63209 Mon Sep 17 00:00:00 2001 From: Sam Naser Date: Thu, 10 Feb 2022 15:40:01 -0800 Subject: [PATCH] Fix ASM sample --- examples/simple_zonal_with_asm/hub.tf | 8 ++++++++ examples/simple_zonal_with_asm/main.tf | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/simple_zonal_with_asm/hub.tf b/examples/simple_zonal_with_asm/hub.tf index 79d9fdb2b6..036f360adf 100644 --- a/examples/simple_zonal_with_asm/hub.tf +++ b/examples/simple_zonal_with_asm/hub.tf @@ -14,6 +14,13 @@ * limitations under the License. */ +resource "google_gke_hub_feature" "mesh_feature" { + name = "servicemesh" + project = var.project_id + location = "global" + provider = google-beta +} + resource "google_gke_hub_membership" "cluster_membership" { provider = google-beta project = var.project_id @@ -24,3 +31,4 @@ resource "google_gke_hub_membership" "cluster_membership" { } } } + diff --git a/examples/simple_zonal_with_asm/main.tf b/examples/simple_zonal_with_asm/main.tf index a1f30659f5..61bbeae946 100644 --- a/examples/simple_zonal_with_asm/main.tf +++ b/examples/simple_zonal_with_asm/main.tf @@ -58,8 +58,9 @@ module "gke" { module "asm" { source = "../../modules/asm" + project_id = var.project_id cluster_name = module.gke.name cluster_location = module.gke.location - project_id = var.project_id - location = module.gke.location + enable_cross_cluster_service_discovery = true + enable_cni = true }