Created
December 6, 2021 13:20
-
-
Save salrashid123/4f319cd6f687e9f4045ce3a982227f02 to your computer and use it in GitHub Desktop.
k8s_wif_3.txt
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
gcloud beta iam workload-identity-pools create-cred-config \ | |
projects/$PROJECT_NUMBER/locations/global/workloadIdentityPools/pool-k8s/providers/oidc-provider-k8s-1 \ | |
--service-account=oidc-federated@$PROJECT_ID.iam.gserviceaccount.com \ | |
--output-file=sts-creds.json \ | |
--credential-source-file=/var/run/secrets/iot-token/iot-token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment