mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-10-25 02:31:30 +00:00
Tweak resource limits to maximum per node
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
sha1 := $(shell git rev-parse --short=8 HEAD)
|
||||
env := production
|
||||
net := testnet
|
||||
cfg := geth/config/$(net)
|
||||
|
||||
export KUBECONFIG=config/cluster.yaml
|
||||
|
||||
sha1 := $(shell git rev-parse --short=8 HEAD)
|
||||
geth := /go-ethereum/build/bin/geth --datadir=/ethereum
|
||||
net ?= testnet
|
||||
cfg := geth/config/$(net)
|
||||
|
||||
all: deploy
|
||||
|
||||
build:
|
||||
@@ -23,6 +23,9 @@ create-volume:
|
||||
create-pod:
|
||||
kubectl apply -f $(cfg)/pod.yaml
|
||||
|
||||
delete-pod:
|
||||
kubectl delete -f $(cfg)/pod.yaml
|
||||
|
||||
delete:
|
||||
kubectl delete -f $(cfg)/pod.yaml || echo not running
|
||||
kubectl delete -f $(cfg)/pvc.yaml || echo not running
|
||||
@@ -38,6 +41,15 @@ logs:
|
||||
ssh:
|
||||
kubectl exec -it geth-$(net) -- /bin/bash
|
||||
|
||||
attach:
|
||||
kubectl exec -it geth-$(net) -- $(geth) attach
|
||||
|
||||
nodeinfo:
|
||||
kubectl exec -it geth-$(net) -- $(geth) attach --exec 'admin.nodeInfo'
|
||||
|
||||
syncstatus:
|
||||
kubectl exec -it geth-$(net) -- $(geth) attach --exec 'eth.syncing'
|
||||
|
||||
# Add secret for hanzo-ai gcr.io. This enables our cluster to pull images from
|
||||
# our shared image repo. This should only be run once after cluster creation.
|
||||
add-gcr-key:
|
||||
|
||||
@@ -6,6 +6,13 @@ spec:
|
||||
containers:
|
||||
- name: geth-mainnet
|
||||
image: gcr.io/hanzo-ai/geth:latest
|
||||
resources:
|
||||
requests:
|
||||
cpu: 1930m
|
||||
memory: 5784712Ki
|
||||
limits:
|
||||
cpu: 1930m
|
||||
memory: 5784712Ki
|
||||
command:
|
||||
- /go-ethereum/build/bin/geth
|
||||
args:
|
||||
|
||||
@@ -6,6 +6,13 @@ spec:
|
||||
containers:
|
||||
- name: geth-testnet
|
||||
image: gcr.io/hanzo-ai/geth:latest
|
||||
resources:
|
||||
requests:
|
||||
cpu: 1930m
|
||||
memory: 5784712Ki
|
||||
limits:
|
||||
cpu: 1930m
|
||||
memory: 5784712Ki
|
||||
command:
|
||||
- /go-ethereum/build/bin/geth
|
||||
args:
|
||||
|
||||
Reference in New Issue
Block a user