Skip to content

Commit

Permalink
Fix ASM sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Naser committed Feb 10, 2022
1 parent c961aaa commit 995b927
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions examples/simple_zonal_with_asm/hub.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,3 +31,4 @@ resource "google_gke_hub_membership" "cluster_membership" {
}
}
}

4 changes: 3 additions & 1 deletion examples/simple_zonal_with_asm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ 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
}

0 comments on commit 995b927

Please sign in to comment.