Skip to content

Commit fadd21c

Browse files
authored
Describe how to read a Pub/Sub topic from another project
The GOOGLE_CLOUD_PROJECT environment variable needs to be set to the project where the Pub/Sub topic resides. This addresses #1811
1 parent 56a2fe8 commit fadd21c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cost-optimization/gke-keda/cloud-pubsub/deployment/keda-pubsub-with-workload-identity.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ spec:
4141
spec:
4242
serviceAccountName: keda-pubsub-sa
4343
containers:
44+
# Note: Set the GOOGLE_CLOUD_PROJECT environment variable if the Pub/Sub topic
45+
# is not in the same GCP project as this Kubernetes cluster.
4446
- name: subscriber
4547
image: us-docker.pkg.dev/google-samples/containers/gke/keda-pubsub-sample:v1
4648
# [END gke_deployment_keda_pubsub_with_workflow_identity_deployment_pubsub]

0 commit comments

Comments
 (0)