From 06022efc42ba6cf9668aed52efeec876e40aef08 Mon Sep 17 00:00:00 2001 From: bw2 Date: Wed, 7 Feb 2018 06:15:00 -0500 Subject: [PATCH] updated context target to avoid this error: 'The connection to the server localhost:8080 was refused - did you specify the right host or port?' --- projects/gnomad/deploy/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/gnomad/deploy/Makefile b/projects/gnomad/deploy/Makefile index 4c89b58ea..958b9df40 100644 --- a/projects/gnomad/deploy/Makefile +++ b/projects/gnomad/deploy/Makefile @@ -23,12 +23,12 @@ SERVICE_FORWARDING_RULE_ID=$(shell gcloud compute forwarding-rules list --format start-gnomad-prod: build-javascript build-legacy create-gnomad-prod gnomad-prod-service context: - gcloud container clusters get-credentials $(CLUSTER_NAME) --zone=$(GCLOUD_ZONE) + gcloud container clusters get-credentials $(CLUSTER_NAME) --zone=$(GCLOUD_ZONE) --project=$(GCLOUD_PROJECT) kubectl config set-context $(CLUSTER_NAME) \ - --cluster $(GKE_CLUSTER_NAME) \ - --user $(GKE_CLUSTER_NAME) \ + --cluster $(CLUSTER_NAME) \ + --user $(CLUSTER_NAME) \ --namespace $(CLUSTER_NAMESPACE) - kubectl config use-context $(CLUSTER_NAME) + kubectl config use-context gke_$(GCLOUD_PROJECT)_$(GCLOUD_ZONE)_$(CLUSTER_NAME) build-javascript: npm run build:umd