Skip to content

tubackkhoa/hyperledger-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperledger Fabric on Kubernetes


This repository is composed of manifests which will deploy:

  • orderer-service
  • 2-peers of 2 different organisations
  • ca-service
  • cli-service

How to deploy?

Note: This guide assumes that you already have running Kubernetes Cluster with a master and n-minions.

  1. Prepare crypto-config.yaml and configtx.yaml in "driving-files" Directory.

  2. Run "generateArtifacts.sh" script in "driving-files" directory to create "orderer.genesis.block"

    $ cd driving-files
    $ bash generateArtifacts.sh <channel-name>
    
    note: If you don't wish to provide a channel-name, then
    by default, genesis block will be created for a channel name "mychannel"
    
  3. Now, all the artifacts are generated, finally run: $ bash prepare-files.sh

  4. Now, Copy "driving-files" directory to all the nodes, i.e. Master along with all the Minions.

  5. On Master, run "run.sh" $ bash run.sh

  6. Now, Kube-DNS and Nginx Stream Proxy has been setted up.

  7. Setting up the environment variables $ export NGINX_PROXY_DNS=<your master-node ip-address>

  8. Add this setting to Docker running on all nodes


   ExecStart=/usr/bin/dockerd -H fd:// \
   $DOCKER_OPTS $DOCKER_OPT_BIP $DOCKER_OPT_MTU \
   $DOCKER_OPT_DNS
  1. Now, time to restart the docker daemon $ systemctl daemon-reload && systemctl restart docker

  2. Deploy the cluster $ bash run deploy.sh


PLEASE DO COME UP WITH YOUR PROBLEMS AND IDEAS TO MAKE IT BETTER

chawlanikhil24 [@] ROCKET-CHAT https://chat.hyperledger.org/direct/chawlanikhil24

About

Deploy hyperledger on kubernetes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages