This setup creates a basic Hyperledger Fabric blockchain network with 3 peer nodes running on your local Minikube cluster.
- 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
- Minikube installed and running
- kubectl configured to use your Minikube cluster
-
Start Minikube (if not already running):
minikube start
-
Deploy the network:
./deploy.sh
-
Check deployment status:
kubectl get pods -n hyperledger-fabric
-
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
- Namespace: hyperledger-fabric
- CA Service: ca-org1:7054
- Orderer Service: orderer:7050
- Peer Services:
- peer0-org1:7051
- peer1-org1:8051
- peer2-org1:9051
To remove the entire network:
./cleanup.sh- 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)
Once the network is running, you can:
- Create and join channels
- Install and instantiate chaincode
- Invoke transactions
- Query the ledger
For production deployments, consider:
- Enabling TLS
- Using persistent volumes
- Setting up multiple organizations
- Implementing proper MSP configuration
- Adding monitoring and logging