mirror of
https://github.com/hanzo-labs/ethereum-cluster.git
synced 2026-10-30 18:54:23 +00:00
42 lines
926 B
YAML
42 lines
926 B
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: geth-node
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: geth
|
|
serviceName: "geth"
|
|
replicas: 10 # by default is 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: geth
|
|
spec:
|
|
terminationGracePeriodSeconds: 30
|
|
containers:
|
|
- name: geth
|
|
image: gcr.io/hanzo-ai/geth:latest
|
|
command:
|
|
- /go-ethereum/build/bin/geth
|
|
args:
|
|
- --datadir=/ethereum
|
|
- --cache=1024
|
|
- --rpc
|
|
- --rpcaddr=0.0.0.0
|
|
- --rpcport=13264
|
|
- --syncmode=fast
|
|
- --rpccorsdomain="*"
|
|
volumeMounts:
|
|
- mountPath: '/ethereum'
|
|
name: geth-mainnet-pv
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: geth-mainnet-storage
|
|
spec:
|
|
accessModes: [ "ReadOnlyMany" ]
|
|
storageClassName: geth-storage
|
|
resources:
|
|
requests:
|
|
storage: 1000Gi
|