Skip to content

Conversation

@siyuanfoundation
Copy link

@siyuanfoundation siyuanfoundation commented Nov 21, 2025

Description

Update gke gcs bucket instructions to use workload identity
to be consistent with https://docs.ray.io/en/master/cluster/kubernetes/examples/distributed-checkpointing-with-gcsfuse.html#configuring-the-gcs-bucket

Related issues

Additional information

@siyuanfoundation siyuanfoundation marked this pull request as ready for review November 24, 2025 14:11
@siyuanfoundation siyuanfoundation requested review from a team as code owners November 24, 2025 14:11
@siyuanfoundation
Copy link
Author

/cc @andrewsykim

def check_gcs_read_write():
client = storage.Client()
bucket = client.get_bucket(GCP_GCS_BUCKET)
bucket = client.bucket(GCP_GCS_BUCKET)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was the change from get_bucket to bucket required?


```bash
kubectl create serviceaccount my-ksa
KSA=my-ksa
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you also set NAMESPACE and pass it in -n below?

iam.gke.io/gcp-service-account=my-iam-sa@my-project-id.iam.gserviceaccount.com
PROJECT_ID=<your project ID>
PROJECT_NUMBER=<your project number>
gcloud storage buckets add-iam-policy-binding gs://${BUCKET} --member "principal://iam.googleapis.com/projects/${PROJECT_NUMBER}/locations/global/workloadIdentityPools/${PROJECT_ID}.svc.id.goog/subject/ns/default/sa/${KSA}" --role "roles/storage.objectUser"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set ns to ${NAMESPACE}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants