Skip to content

Commit de2a5e9

Browse files
authored
docs: Expand independent ASM submodule example req (terraform-google-modules#1213)
1 parent 5197f22 commit de2a5e9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

modules/asm/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,22 @@ This module installs [Anthos Service Mesh](https://cloud.google.com/service-mesh
44

55
## Usage
66

7-
There are a few prerequisites to using this module that can be done either through Terraform or manually:
7+
There are a few prerequisites to using this module that can be done either through Terraform and/or manually:
88

99
1. Enable the `mesh.googleapis.com` service
1010
1. Enable the `servicemesh` feature on the cluster hub
1111
1. Register target cluster to the servicemesh-enabled hub
12+
1. Configure the [Kubernetes Provider](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs) for the target cluster, for example:
13+
14+
```tf
15+
provider "kubernetes" {
16+
host = "https://${module.gke.endpoint}"
17+
token = data.google_client_config.default.access_token
18+
cluster_ca_certificate = base64decode(module.gke.ca_certificate)
19+
}
20+
21+
data "google_client_config" "default" {}
22+
```
1223

1324
There is a full example provided [here](../../examples/simple_zonal_with_asm). Detailed usage example is as follows:
1425

0 commit comments

Comments
 (0)