Remove node selector

This commit is contained in:
2018-12-01 18:29:31 -08:00
parent af9a2968e4
commit cea431afc9
2 changed files with 12 additions and 12 deletions
+10 -10
View File
@@ -1,13 +1,13 @@
sha1 := $(shell git rev-parse --short=8 HEAD)
geth := /bin/geth --datadir=/data
net ?= testnet
cfg := config/$(net)
region := us-central1
zone := us-central1-a
number ?= 047
chain ?= ethereum
sha1 := $(shell git rev-parse --short=8 HEAD)
geth := /bin/geth --datadir=/data
net ?= testnet
cfg := config/$(net)
region := us-central1
zone := us-central1-a
number ?= 657758440341
node ?= geth
export KUBECONFIG=config/$(chain)-$(net)/cluster.yaml
export KUBECONFIG=config/$(node)-$(net)/cluster.yaml
all: deploy
@@ -79,7 +79,7 @@ add-gcr-key:
# Get credentials for kubectl for current cluster
get-credentials:
gcloud container clusters get-credentials $(chain)-$(net) --zone $(zone) --project hanzo-ai
gcloud container clusters get-credentials $(node)-$(net) --zone $(zone) --project hanzo-ai
# Default to whatever zone you launched your cluster in to reduce key strokes
region-zone-defaults:
+2 -2
View File
@@ -114,9 +114,9 @@ class Blockchain(Pod):
self.metadata = Metadata(name=name, cluster=cluster, blockchain=blockchain, network=network)
client = os.path.basename(command)
selector = client + '-' + network
self.spec = Spec(
nodeSelector={"cloud.google.com/gke-nodepool": selector},
# nodeSelector={"cloud.google.com/gke-nodepool": selector},
nodeSelector={},
containers=[],
volumes=[],
)