Coder Social home page Coder Social logo

kubereum's Introduction

Build Status

Kubernetes + Ethereum = Kubereum

This repos is containerize the Ethereum example. The goal is quickly setup a private Ethereum blockchain using Docker and Kubernetes.

Support Feature:

  • Private network chain.
  • Miner monitoring.
  • Blockchain stats dashboard.
  • Solidity browser service.

Example in my Lab: asciicast

Image build status

Solidity Ethnetintel Ethstats Auto peer
Docker Build Statu Docker Build Statu Docker Build Statu Docker Build Statu

Requirements

  • Docker engine.
  • Kubernetes cluster.

Usage

To run the Ethereum private chain cluster(without the Ethereum network status):

$ kubectl apply \
-f geth-config.yml \
-f geth-svc.yml \
-f geth-ds.yml

Check the pods:

$  kubectl get po,svc -o wide
NAME            READY     STATUS    RESTARTS   AGE       IP            NODE
po/geth-289mg   2/2       Running   0          10m       10.244.52.3   node4
po/geth-fqszz   2/2       Running   0          10m       10.244.96.2   node1
po/geth-hxlf2   2/2       Running   0          10m       10.244.85.4   node3
po/geth-vjtpf   2/2       Running   0          10m       10.244.98.3   node2

NAME             CLUSTER-IP        EXTERNAL-IP   PORT(S)    AGE       SELECTOR
svc/geth         192.168.170.219   <none>        8545/TCP   4h        app=geth

Attach the Ethereum IPC file(Install geth from Building-Ethereum):

$ cd /var/geth && ls
geth  geth.ipc  keystore

$ geth attach ipc:geth.ipc
Welcome to the Geth JavaScript console!

instance: Geth/v1.6.7-unstable/linux-amd64/go1.7.3
coinbase: 0x2f99300b9fb9da018e7004e448f0a16730dbe6a4
at block: 0 (Thu, 01 Jan 1970 00:00:00 UTC)
 datadir: /var/geth
 modules: admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0

> net.peerCount
3

kubereum's People

Contributors

alexiri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.