Search code examples
kubernetesgoogle-cloud-platformgoogle-kubernetes-enginekubernetes-pod

How to specify Google service account in Kubernetes pod


I am deploying a Spring Boot application inside a Kubernetes pod on Google Cloud Platform.

I don't want to use the Compute Engine default service account in our pod.

How and where can we specify a Google service account for our pod?


Solution

  • This guide https://cloud.google.com/kubernetes-engine/docs/tutorials/authenticating-to-cloud-platform#step_5_configure_the_application_with_the_secret helped me in setting the service account.