Skip to content

Commit

Permalink
updated context target to avoid this error: 'The connection to the se…
Browse files Browse the repository at this point in the history
…rver localhost:8080 was refused - did you specify the right host or port?'
  • Loading branch information
bw2 committed Jun 22, 2018
1 parent 627651a commit 06022ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions projects/gnomad/deploy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06022ef

Please sign in to comment.