-
Notifications
You must be signed in to change notification settings - Fork 7k
[Doc]Update gke gcs bucket instructions to use workload identity #58901
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Siyuan Zhang <[email protected]>
|
/cc @andrewsykim |
| def check_gcs_read_write(): | ||
| client = storage.Client() | ||
| bucket = client.get_bucket(GCP_GCS_BUCKET) | ||
| bucket = client.bucket(GCP_GCS_BUCKET) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set ns to ${NAMESPACE}
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