Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mesh option to the GKE Hub feature membership resource documentation #13012

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/6811.txt
@@ -0,0 +1,3 @@
```release-note:enhancement
gkehub: added `mesh` field and `management` subfield to resource `feature_membership`
```
47 changes: 47 additions & 0 deletions website/docs/r/gke_hub_feature_membership.html.markdown
Expand Up @@ -72,6 +72,44 @@ resource "google_gke_hub_feature" "feature" {
}
```

## Example Usage - Serivce Mesh

```hcl
resource "google_container_cluster" "cluster" {
name = "my-cluster"
location = "us-central1-a"
initial_node_count = 1
provider = google-beta
}

resource "google_gke_hub_membership" "membership" {
membership_id = "my-membership"
endpoint {
gke_cluster {
resource_link = "//container.googleapis.com/${google_container_cluster.cluster.id}"
}
}
provider = google-beta
}

resource "google_gke_hub_feature" "feature" {
name = "servicemesh"
location = "global"

provider = google-beta
}

resource "google_gke_hub_feature_membership" "feature_member" {
location = "global"
feature = google_gke_hub_feature.feature.name
membership = google_gke_hub_membership.membership.membership_id
mesh {
management = "MANAGEMENT_AUTOMATIC"
}
provider = google-beta
}
```

## Argument Reference

The following arguments are supported:
Expand All @@ -81,6 +119,10 @@ The following arguments are supported:
* `configmanagement` -
(Optional)
Config Management-specific spec. Structure is [documented below](#nested_configmanagement).

* `mesh` -
(Optional)
Service mesh specific spec. Structure is [documented below](#nested_mesh).

* `feature` -
(Optional)
Expand Down Expand Up @@ -223,6 +265,11 @@ The following arguments are supported:
(Optional)
Specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: [\"cloudmonitoring\", \"prometheus\"]. Default: [\"cloudmonitoring\", \"prometheus\"]

<a name="nested_mesh"></a>The `mesh` block supports:

* `management` -
(Optional)
Whether to automatically manage Service Mesh. Can either be `MANAGEMENT_AUTOMATIC` or `MANAGEMENT_MANUAL`.

## Attributes Reference

Expand Down