Skip to content

Commit 995b927

Browse files
author
Sam Naser
committed
Fix ASM sample
1 parent c961aaa commit 995b927

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

examples/simple_zonal_with_asm/hub.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17+
resource "google_gke_hub_feature" "mesh_feature" {
18+
name = "servicemesh"
19+
project = var.project_id
20+
location = "global"
21+
provider = google-beta
22+
}
23+
1724
resource "google_gke_hub_membership" "cluster_membership" {
1825
provider = google-beta
1926
project = var.project_id
@@ -24,3 +31,4 @@ resource "google_gke_hub_membership" "cluster_membership" {
2431
}
2532
}
2633
}
34+

examples/simple_zonal_with_asm/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ module "gke" {
5858

5959
module "asm" {
6060
source = "../../modules/asm"
61+
project_id = var.project_id
6162
cluster_name = module.gke.name
6263
cluster_location = module.gke.location
63-
project_id = var.project_id
6464
location = module.gke.location
65+
enable_cross_cluster_service_discovery = true
66+
enable_cni = true
6567
}

0 commit comments

Comments
 (0)