Ethereum node Geth with liveness check for Kubernetes
50K+
This is work-around for auto-restart geth if node not syncing (issues like this)
geth in namearilot/gethExample:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: ethereum-geth
spec:
template:
metadata:
labels:
app: geth
spec:
containers:
- command:
- bash
- -c
- gunicorn -b 0.0.0.0 app:app --daemon && geth --syncmode fast=
image: arilot/geth
imagePullPolicy: Always
livenessProbe:
failureThreshold: 1
httpGet:
path: /healthz
port: 8000
scheme: HTTP
initialDelaySeconds: 300
periodSeconds: 300
successThreshold: 1
timeoutSeconds: 30
name: ethereum-geth
ports:
- containerPort: 8545
name: rpc
protocol: TCP
- containerPort: 8546
name: ws
protocol: TCP
volumeMounts:
- mountPath: /root
name: data
volumes:
- name: data
persistentVolumeClaim:
claimName: ethereum-geth
Content type
Image
Digest
Size
124.9 MB
Last updated
over 7 years ago
docker pull arilot/geth