File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff 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
991 . Enable the ` mesh.googleapis.com ` service
10101 . Enable the ` servicemesh ` feature on the cluster hub
11111 . 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
1324There is a full example provided [ here] ( ../../examples/simple_zonal_with_asm ) . Detailed usage example is as follows:
1425
You can’t perform that action at this time.
0 commit comments