Skip to content

Commit a37590a

Browse files
chore: ASM module - Add a note about the mesh_id label on the GKE cluster (terraform-google-modules#1284)
* Add a note about the `mesh_id` label on the GKE cluster * Update modules/asm/README.md Co-authored-by: Bharath KKB <[email protected]> * Link to a doc talking about the `mesh_id` label on the GKE cluster Co-authored-by: Bharath KKB <[email protected]>
1 parent a8b6f20 commit a37590a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/asm/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ module "asm" {
3333
}
3434
```
3535

36+
Note that the [`mesh_id` label on the cluster](https://cloud.google.com/service-mesh/docs/managed/auto-control-plane-with-fleet#apply_the_mesh_id_label) is required for metrics to get displayed on the Anthos Service Mesh pages in the Cloud console (Topology, etc.). Illustrated with the full example mentioned above, here is an example of what your cluster should have:
37+
```tf
38+
module "gke" {
39+
...
40+
cluster_resource_labels = { "mesh_id" : "proj-${data.google_project.project.number}" }
41+
...
42+
}
43+
```
44+
3645
To deploy this config:
3746

3847
1. Run `terraform apply`

0 commit comments

Comments
 (0)