fabric-samples/test-network-k8s
Matthew B White 337584045d Updated logging
- updated the logging for the application command; wasn't very good
- added some information to the help option. the current settings
  useful if you're not sure what you've set

Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
2021-11-01 16:15:30 -04:00
..
chaincode Run the fabric test network on Kubernetes (#498) 2021-10-06 15:50:39 +00:00
config Run the fabric test network on Kubernetes (#498) 2021-10-06 15:50:39 +00:00
docs Run the fabric test network on Kubernetes (#498) 2021-10-06 15:50:39 +00:00
kube Allow overrides of the docker registry for fabric images (#518) 2021-10-27 16:24:26 +01:00
scripts Updated logging 2021-11-01 16:15:30 -04:00
.gitignore Run the fabric test network on Kubernetes (#498) 2021-10-06 15:50:39 +00:00
network Updated logging 2021-11-01 16:15:30 -04:00
README.md Run the fabric test network on Kubernetes (#498) 2021-10-06 15:50:39 +00:00

Kubernetes Test Network

This project re-establishes the Hyperledger test-network as a cloud native application.

Objectives:

  • Provide a simple, one click activity for running the Fabric test network.
  • Provide a reference guide for deploying production-style networks on Kubernetes.
  • Provide a cloud ready platform for developing chaincode, Gateway, and blockchain apps.
  • Provide a Kube supplement to the Fabric CA Operations and Deployment guides.
  • Support a transition to Chaincode as a Service.
  • Support a transition from the Internal, Docker daemon to External Chaincode builders.
  • Run on any Kube.

Fabric, Ahoy!

Prerequisites

Quickstart

Create a local Kubernetes cluster:

./network kind

Launch the network, create a channel, and deploy the basic-asset-transfer smart contract:

./network up
./network channel create
./network chaincode deploy

Invoke and query chaincode:

./network chaincode invoke '{"Args":["CreateAsset","1","blue","35","tom","1000"]}' 
./network chaincode query '{"Args":["ReadAsset","1"]}'

Access the blockchain with a REST API:

./network rest-easy

Tear down the test network:

./network down 

Tear down the cluster:

./network unkind

Detailed Guides

Areas for Improvement / TODOs

  • Test the recipe with OCP, AWS, gcp, Azure, etc. (These should ONLY differ w.r.t. pvc and ingress)
  • Implement @celder mechanism for bootstrapping dual-headed CAs w/o poisoning the root CA on expiry.
  • Address any of the 20+ todo: notes in network.sh
  • Implement mutual TLS across peers, orderers, and clients.
  • Caliper?