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 11, 2022
1 parent c961aaa commit 7ad8320
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
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" {
}
}
}

5 changes: 3 additions & 2 deletions examples/simple_zonal_with_asm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 7ad8320

Please sign in to comment.