fabric-samples/test-network-k8s
Tatsuya Sato 36ff1c46e3 test-network-k8s: Support for Loading images for rest sample to KIND
This patch supports for pulling all images to the local docker cache
and loading to KIND.

Also, this adds the missing docker image pulling (couchdb) for Fabric.

Signed-off-by: Tatsuya Sato <tatsuya.sato.so@hitachi.com>
2022-04-11 06:43:17 +00:00
..
chaincode Adding examples of CCAAS and support into the test-network-k8s (#527) 2021-12-17 14:09:03 +00:00
config test-network-k8s : Connect to Fabric services via Nginx Ingress - READY FOR MERGE (#692) 2022-03-31 17:12:51 +01:00
docs Updates the README and documentation guide for the Kube test network's usage of Nginx ingress (#697) 2022-04-04 04:25:59 -04:00
kube test-network-k8s : Connect to Fabric services via Nginx Ingress - READY FOR MERGE (#692) 2022-03-31 17:12:51 +01:00
scripts test-network-k8s: Support for Loading images for rest sample to KIND 2022-04-11 06:43:17 +00:00
.gitignore test-network-k8s : Connect to Fabric services via Nginx Ingress - READY FOR MERGE (#692) 2022-03-31 17:12:51 +01:00
kubectl test-network-k8s: Support for Loading images for rest sample to KIND 2022-04-11 06:43:17 +00:00
network test-network-k8s: Support for Loading images for rest sample to KIND 2022-04-11 06:43:17 +00:00
README.md Updates the README and documentation guide for the Kube test network's usage of Nginx ingress (#697) 2022-04-04 04:25:59 -04: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

  • Refine the recipe and guidelines for use with k3s / nerdctl (rancherdesktop.io) as an alternative to Docker / KIND.
  • Test the recipe with OCP, AWS, gcp, Azure, etc. (These should ONLY differ w.r.t. pvc and ingress)
  • Address any of the 20+ todo: notes in network.sh
  • Implement mutual TLS across peers, orderers, and clients.
  • Caliper?