Tweak resource limits to maximum per node

This commit is contained in:
2018-04-11 15:45:12 -05:00
parent 0a2ecbf099
commit 5213380aa8
3 changed files with 31 additions and 5 deletions
+17 -5
View File
@@ -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:
+7
View File
@@ -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:
+7
View File
@@ -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: