QuestionQ115

VerifiedIntegrating applications with Google Cloud services

You are deploying a microservices application on GKE. One microservice must download files from a Cloud Storage bucket. You have an IAM service account that has the Storage Object Viewer role on the project containing the bucket. You need to configure the application to access the Cloud Storage bucket while following Google-recommended practices. What should you do?

Explanation

Workload Identity Federation for GKE is the recommended method for GKE workloads to access Google Cloud services without managing service-account key files or sharing a node identity. It links a Kubernetes ServiceAccount to an IAM service account by granting the Kubernetes identity permission to impersonate the IAM service account and annotating the Kubernetes ServiceAccount with that IAM service account. Pods assigned that Kubernetes ServiceAccount receive short-lived credentials, and the IAM service account's Storage Object Viewer role permits downloading Cloud Storage objects.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!