From 230a1c789d120012c1fe40f83b80f097d58290fa Mon Sep 17 00:00:00 2001 From: "Madhusudan.C.S" Date: Tue, 30 Aug 2016 15:01:17 -0700 Subject: [PATCH] Mount GCP credentials to federation deployment container for GKE clusters. GKE clusters use GCP credentials and hence require them for deploying federation components on to those clusters. --- federation/deploy/deploy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/federation/deploy/deploy.sh b/federation/deploy/deploy.sh index a91c604d15c..5545c1dc23c 100755 --- a/federation/deploy/deploy.sh +++ b/federation/deploy/deploy.sh @@ -91,6 +91,10 @@ function federation_action() { kube::log::status "Action: ${action} federation components" docker run \ -m 12G \ + # For non-GKE clusters just mounting kubeconfig is sufficient. But we need + # gcloud credentials for GKE clusters, so we pass both kubeconfig and + # gcloud credentials + -v "${GOOGLE_APPLICATION_CREDENTIALS}:/root/.config/gcloud/application_default_credentials.json:ro" \ -v "${KUBE_CONFIG}:/root/.kube/config:ro" \ -v "${FEDERATION_OUTPUT_ROOT}:/_output" \ "${KUBE_ANYWHERE_FEDERATION_CHARTS_IMAGE}:${KUBE_ANYWHERE_FEDERATION_CHARTS_VERSION}" \