mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-10-25 02:31:30 +00:00
Remove node selector
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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=[],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user