googleforgames / global-multiplayer-demo

This multiplayer demo is a cloud first implementation of a global scale, realtime multiplayer game utilising dedicated game servers, utilising both Google Cloud's products and open source gaming solutions.
Apache License 2.0
117 stars 16 forks source link

Move GKE Cluster Hub Fleet membership from Cloud Build to Terraform #229

Closed markmandel closed 7 months ago

markmandel commented 1 year ago

We currently manage GKE Hub Fleet membership here: https://github.com/googleforgames/global-multiplayer-demo/blob/main/platform/cloudbuild.yaml

When we first wrote this, there wasn't a way to do this via Terraform -- and there now is!

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/gke_hub_feature

Specifically https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/gke_hub_feature#example-usage---enable-fleet-default-member-config-service-mesh seems to be the appropriate path.