Growing the Cloudflare Apps Ecosystem

Why now? Over the course of past few months we’ve seen accelerating interest in Workers, and we frequently field the question on what we are doing to combine our growing ecosystem around Workers, and…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Hyperledger Fabric Network using Kubernetes

The objective of this post is to implement fabric network on Kubernetes platform.The indent is to explore the architecture behind kubernetes deployment of fabric network using a basic network .

We will deploy one master node , two worker nodes and a NFS server to share network artifacts and chain code data across the nodes.

Keeping it simple we will be deploying the Hyperledger Fabric network consisting of one organization, maintaining one peer node, one orderer with ‘solo’ ordering service. We will create a channel , join peer to the channel , install chaincode on peer and instantiate chaincode on channel. Also invoke transactions against the deployed chaincode.

Installation

Generate the Network Artifacts

Generate the network artifacts using configtx.yaml, crypto-config.yaml.If you intent to modify the network topology, change the configuration files (.yaml files) appropriately.

Copy (or use bind) the files from network artifacts , crypto and chaincode directory to NFS share.

Deployment Model

K8s Deployment Model

NameSpace

Services

Deployments

Persistent Volume Claim

Persistent Volume ( NFS)

Start the network

Now lets start the network by running scripts one by one.

Kubernetes Dashboard Orderer Pod Logs shows new channel

Install ChainCode

Install ChainCode

Instantiate ChainCode

Instantiate ChainCode

Invoke ChainCode

Query Result

You would see that the chain code container is getting started inside the docker-dind pod as a sidecar container.

References

Add a comment

Related posts:

What Is The Difference Between AdWords And AdSense?

The difference between AdWords and AdSense is simple. AdWords helps businesses get new customers by bidding on search queries. AdSense helps businesses monetize their websites. Let’s get look a…

Understand your emotional baggage to improve the quality of your life

Coming to understand your emotional baggage is the first step in healing it.

Generate dan Verify JWT di ExpressJS dengan PassportJS

kebetulan gua lagi implement JWT menggunakan PassportJS di salah satu projek yang gua kerjakan, jadi daripada hasil researchnya sia — sia mending gua buat jadi tulisan. pertama silahkan buat projek…