Skip to content

dysnix/geth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is work-around for auto-restart geth if node not syncing (issues like this)

Requirements

  • Kubernetes 1.8 or highest version
  • Ethereum node (we using helm chart, but you can use any geth provision solution.
  • Geth RPC Kubernetes service name must include geth in name

Usage

  • Use image arilot/geth
  • Add liveness section

Example:

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

About

Ethereum node Geth with liveness check

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •