Skip to content

Commit

Permalink
Merge pull request #194 from rvandernoort/docs/gke-workload-identity
Browse files Browse the repository at this point in the history
update README GKE Workload Identity instructions
  • Loading branch information
blackpiglet authored Oct 28, 2024
2 parents 222c3c5 + b1ad2af commit 53916eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,16 @@ Namespace is already created in step 1 above.
```bash
gcloud iam service-accounts add-iam-policy-binding \
--role roles/iam.workloadIdentityUser \
--member "serviceAccount:[$PROJECT_ID].svc.id.goog[$NAMESPACE/$KSA_NAME]" \
[$GSA_NAME]@[$PROJECT_ID].iam.gserviceaccount.com
--member "serviceAccount:$PROJECT_ID.svc.id.goog[$NAMESPACE/$KSA_NAME]" \
$GSA_NAME@$PROJECT_ID.iam.gserviceaccount.com
```
4. Add annotation to Kubernetes Service Account
```bash
kubectl annotate serviceaccount $KSA_NAME \
--namespace $NAMESPACE \
iam.gke.io/gcp-service-account=$GSA_NAME@$PROJECT_ID.iam.gserviceaccount.com
```
In this case:
Expand Down
1 change: 1 addition & 0 deletions changelogs/unreleased/194-rvandernoort
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
update README GKE Workload Identity instructions

0 comments on commit 53916eb

Please sign in to comment.