Giter Site home page Giter Site logo

xinfin-k8s's Introduction

XinFin-K8S

Prerequisite

Pull image on worker node(s)

sudo docker pull xinfinorg/quorum:istanbul-tools-k8s

Clone repository & execute the following:

Create genesis as ConfigMap

kubectl create -f XinFin-K8S/genesis-configmap.yaml

Create nodekeys as secret (base64 encoded)

kubectl create -f XinFin-K8S/secret-minernode.yaml

Pre-provision volumes for our nodes to store chaindata (hostpath)

kubectl create -f XinFin-K8S/geth-persistentvolume.yaml

Deploy bootnode

kubectl create -f XinFin-K8S/bootnode-deployment.yaml

Copy bootnode POD_IP using Dashboard or CLI

kubectl proxy

Copy bootnode POD_IP address & update enode address of --bootnodes argument in minernode-statefulset.yaml & membernode-statefulset.yaml (Can be improved to automatically fetch bootnode IP)

Launch minernodes (replicas: 2)

kubectl create -f XinFin-K8S/minernode-statefulset.yaml

Launch membernode (replicas: 1)

kubectl create -f XinFin-K8S/membernode-statefulset.yaml

We have defined 4 validators in extradata field so we need to scale the minernode(s) to start mining.

Scaling

Minernode

kubectl scale statefulset minernode --replicas=4

Membernode

kubectl scale statefulset membernode --replicas=2

Deploy constellation-bootnode which can be used for autodiscovery of other constellation nodes.

kubectl create -f XinFin-K8S/constellation-bootnode-deployment.yaml

Accessing Geth console

kubectl port-forward minernode-0 8545:8545
geth attach http://localhost:8545

To stop the network use "delete" instead of "create". (Please note launching a clean network would require manual cleanup of content in /data directory on worker hosts)

xinfin-k8s's People

Contributors

shrikantgoswami avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.