You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/guess-the-sketch/README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,22 @@ presented with three predefined prompts and asked to select one of them._
31
31
cd ${CUR_DIR:?}/examples/guess-the-sketch
32
32
skaffold run --build-concurrency=0 --cache-artifacts=false
33
33
```
34
-
1. Install the frontend, match maker, and open match into your cluster:
34
+
1. Deploy Open Match 2 on Cloud Run by following [the documention](https://github.com/googleforgames/open-match2/blob/main/docs/DEVELOPMENT.md).
35
+
- NOTE: before running `gcloud run services replace service.yaml` to deploy Open Match 2, make sure to:
36
+
- Replace the IP address of the `OM_REDIS_WRITE_HOST` and `OM_REDIS_READ_HOST` in the [`service.yaml`](https://github.com/googleforgames/open-match2/blob/main/deploy/service.yaml) file to be the IP address of the Redis instance you created.
37
+
- Replace the `run.googleapis.com/network-interfaces` field to use the network and subnetwork configured by terraform. In this case, it's `vpc-genai-quickstart` and `sn-usc1`.
38
+
- Replace the `cloud.googleapis.com/location` field to be the location of your `sn-usc1` subnetwork (us-central1 if you followed the top level [README](https://github.com/googleforgames/GenAI-quickstart/blob/main/README.md)).
39
+
1. Configure Open Match 2's permissions to your cluster.
40
+
- Create a Google Service Account in your project and give it the `Cloud Run Invoker` role.
41
+
- Replace the value of `iam.gke.io/gcp-service-account` of `frontend_k8s.yaml` and `director_k8s.yaml` to be the Google Service Account you created.
42
+
- Bind the Kubernetes Service Account in `frontend_k8s.yaml` and `director_k8s.yaml` to the Google Service Account(in the form of `SERVICE_ACCOUNT_NAME@PROJECT_ID.iam.gserviceaccount.com`) with
43
+
```
44
+
gcloud iam service-accounts add-iam-policy-binding --role roles/iam.workloadIdentityUser --member "serviceAccount:PROJECT_ID.svc.id.goog[genai/frontend-sa]" YOUR_GOOGLE_SERVICE_ACCOUNT
45
+
46
+
gcloud iam service-accounts add-iam-policy-binding --role roles/iam.workloadIdentityUser --member "serviceAccount:PROJECT_ID.svc.id.goog[genai/fleet-allocator]" YOUR_GOOGLE_SERVICE_ACCOUNT
47
+
```
48
+
- Replace the value of `OM_CORE_ADDRESS` environment variable in `frontend_k8s.yaml` and `director_k8s.yaml` to be the url of the OM2 that's deployed on Cloud Run.
49
+
1. Install the frontend and match maker into your cluster:
35
50
- (optional) If you want to enable the consent screen, update `examples/guess-the-sketch/matchmaker/frontend/k8s.yaml` to set `showConsentPage` to `true` before running the `skaffold` command.
36
51
```
37
52
cd ${CUR_DIR:?}/examples/guess-the-sketch/matchmaker
0 commit comments