Deploy Hyperledger Fabric network on IBM Cloud  

Set up your business network using Kubernetes APIs on IBM Cloud Kubernetes Service

Last updated | By Shikha Maheshwari, Vijay K Sukthankar

Description

Blockchain technology revolutionizes businesses and changes how business transactions are done. It alters the model of how multi-party transactions are performed by enabling a shared, immutable ledger for recording the history of transactions among parties in a business network. For developing any blockchain solution, one has to set up a development environment to create and deploy the blockchain application. This code pattern will get you started with blockchain by showing how to quickly deploy the blockchain network on Hyperledger Fabric using Kubernetes APIs on the IBM Cloud Kubernetes Service.

Overview

Blockchain is a shared, immutable ledger for recording transaction history. It promotes a new generation of transactional applications that establish trust, accountability, and transparency.

For developing any blockchain use case, the first step is to have a development environment for Hyperledger Fabric to create and deploy the application. In the environment setup, you’ll create a small blockchain network running Hyperledger Fabric 1.0. A Hyperledger Fabric network can be set up in multiple ways:

This code pattern demonstrates the steps involved in setting up your business network on Hyperledger Fabric using Kubernetes APIs on the IBM Cloud Kubernetes Service and provides an automated, end-to-end script to quickly deploy your network. The IBM Cloud Kubernetes Service combines Docker and Kubernetes to deliver powerful tools to automate the deployment, operation, scaling, and monitoring of containerized applications over a cluster of independent compute hosts by using the Kubernetes APIs. Cloud-hosted Hyperledger Fabric network can be leveraged for easier collaboration among team members.

This pattern provisions a Hyperledger Fabric network consisting of four organizations, each maintaining one peer node, and a solo ordering service. To deploy your blockchain network:

  • Decide on the network topology needed (i.e., number of organizations, number of peers per organization, and ordering service).
  • Set up your blockchain network using this pattern.
  • Start developing your blockchain applications for the deployed network.

Flow

  1. Log in to IBM Cloud Developer Tools CLI and initialize the IBM Cloud Kubernetes Service plugin.
  2. Set context for Kubernetes cluster using CLI and download Kubernetes configuration files, then set KUBECONFIG environment variable.
  3. Run script to deploy Hyperledger Fabric network on Kubernetes cluster.
  4. Access Kubernetes dashboard.

Related Blogs

Related Links

Hyperledger Fabric

Get familiar with the components and basic transaction flow, then check out demos, technical specifications, and more.

Building Your First Network

The scenario provisions a sample Hyperledger Fabric network consisting of two organizations, each maintaining two peer nodes and a solo ordering service.

Kubernetes concepts

Explore the parts of the Kubernetes system and the abstractions Kubernetes uses to represent your cluster to better understand how Kubernetes works.