I'm setting up our CI (Jenkins pipeline) to deploy apps to a GKE cluster. Our Jenkins sever is running external to GKE or any Google Cloud infrastructure. I'm thinking of using a docker image with helm and kubectl to deploy, but need to set up credentials. On my local dev machine, I authenticate with:
gcloud container clusters get-credentials [CLUSTER_NAME]
What would be the best way of setting up credentials for a Jenkins job? Do I have to install and use the gcloud
tools on Jenkins, or is there another approach?