Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CharlesGM/HLF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Simple Hyperledger Fabric Network on Minikube

This setup creates a basic Hyperledger Fabric blockchain network with 3 peer nodes running on your local Minikube cluster.

Network Components

  • 1 Certificate Authority (CA): Issues certificates for the network
  • 1 Orderer: Orders transactions and creates blocks
  • 3 Peer Nodes: Store the ledger and execute chaincode
  • 1 CLI Container: For interacting with the network

Prerequisites

  1. Minikube installed and running
  2. kubectl configured to use your Minikube cluster

Quick Start

  1. Start Minikube (if not already running):

    minikube start
  2. Deploy the network:

    ./deploy.sh
  3. Check deployment status:

    kubectl get pods -n hyperledger-fabric
  4. Access the CLI container:

    kubectl exec -it $(kubectl get pods -n hyperledger-fabric -l app=cli -o jsonpath='{.items[0].metadata.name}') -n hyperledger-fabric -- /bin/bash

Network Details

  • Namespace: hyperledger-fabric
  • CA Service: ca-org1:7054
  • Orderer Service: orderer:7050
  • Peer Services:
    • peer0-org1:7051
    • peer1-org1:8051
    • peer2-org1:9051

Cleanup

To remove the entire network:

./cleanup.sh

Notes

  • This is a simplified setup for development/testing purposes
  • TLS is disabled for simplicity
  • No persistent volumes are used (data will be lost when pods restart)
  • All nodes belong to a single organization (Org1MSP)

Next Steps

Once the network is running, you can:

  1. Create and join channels
  2. Install and instantiate chaincode
  3. Invoke transactions
  4. Query the ledger

For production deployments, consider:

  • Enabling TLS
  • Using persistent volumes
  • Setting up multiple organizations
  • Implementing proper MSP configuration
  • Adding monitoring and logging

About

Hyperledger Fabric Learnings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published