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.
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:
- Local Hyperledger Fabric network using Docker Compose
- IBM Blockchain Platform, a flexible software-as-a-service offering hosted on IBM Cloud
- Kubernetes APIs on IBM Cloud
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 (the 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.
- Log in to IBM Cloud Developer Tools CLI and initialize the IBM Cloud Kubernetes Service plugin.
- Set context for Kubernetes cluster using CLI and download Kubernetes configuration files, then set KUBECONFIG environment variable.
- Run script to deploy Hyperledger Fabric network on Kubernetes cluster.
- Access Kubernetes dashboard.
Ready to put this code pattern to use? Complete details on how to get started running and using this application are in the README.