Created
March 22, 2022 14:15
-
-
Save developer-guy/bd7f766d16e7971e20470e40d797720d to your computer and use it in GitHub Desktop.
create GCP SA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ export GSA_NAME=kyverno-sa | |
$ gcloud iam service-accounts create $GSA_NAME | |
$ gcloud iam service-accounts add-iam-policy-binding \ | |
--role roles/iam.workloadIdentityUser \ | |
--member "serviceAccount:${PROJECT_ID}.svc.id.goog[kyverno/kyverno]" \ | |
${GSA_NAME}@${PROJECT_ID}.iam.gserviceaccount.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment