fabric-private-chaincode icon indicating copy to clipboard operation
fabric-private-chaincode copied to clipboard

Support for IBM Kubernetes (k8s)/OpenShift cloud

Open g2flyer opened this issue 4 years ago • 3 comments

Description

  • [ ] get documentation on IBM Cloud
    • operational guide
      • in general
      • how to get access to a sgx-enabled VM and/or container and, for containers, what the intended deployment model is (e.g., how is kernel device passed, is container supposed to run psw or will the psw socket be shared from host, and if so how, ..)
    • any scriptability options
  • [ ] get access to IBM Cloud
  • [ ] investigate technical approach for
    • [ ] using docker images with k8s
    • [ ] converting docker-compose to k8s (see, e.g., https://kubernetes.io/docs/tasks/configure-pod-container/translate-compose-kubernetes/)
    • [ ] to run docker/docker-compose equivalents from within a container.
      • might require shared volumes for source on dev container so volume mounts work
    • [ ] general fabric-on-kubernetes guides (see e.g., FAB-11240 which seems tasked to do exactly that but as-of-2020-07-07 seems still very early WIP ..)
    • [ ] might also require refactoring standard chaincode to use external builder (otherwise it would expect docker to build and run the corresponding chaincode)
  • [ ] implement/documentation aspects:
    • [ ] Core FPC with integration tests (but not docker-compose; ie., demo only via mock)
    • [ ] Full FPC support (including docker-compose and docker-compose based demo)
    • [ ] fpc chaincode running scalably via k8s (in external builder, see #320). [For some related information, see, e.g., medium article
  • [ ] stagging
    • [ ] most bang for the buck probably would be to do chaincode-deployment to k8s via external builders while still running the infrastructure via docker(-compose) in our tests. Note: docker(-compose) use and related scripts are only for tests so doing that first without doing scalable chaincode enablement would not be thaat useful in a production environment wherreas the converse is useful.

Link to feature or bug

Link to dependent issues

g2flyer avatar Jul 09 '20 18:07 g2flyer

Any updates here? Interested in running an FPC peer node on IKS. Thanks!

anweiss avatar Oct 01 '20 17:10 anweiss

FYI: from HL mailing list some work on (general) fabric and k8s

[Hyperledger Fabric] Hyperledger Fabric Operator

We just released the first version of a project to deploy Hyperledger Fabric on Kubernetes using Operators.

It supports:

  • Create certificates authorities (CA)
  • Create peers
  • Create ordering services
  • Create resources without manual provisioning of cryptographic material
  • Domain routing with SNI using Istio
  • Run chaincode as external chaincode in Kubernetes
  • Support Hyperledger Fabric 2.2 and 2.3
  • Managed genesis for Ordering services
  • E2E testing including the execution of chaincodes in KIND

You can find the instructions on GitHub: https://github.com/kfsoftware/hlf-operator

There's also an external builder operator available at GitHub, which is also used by the operator: https://github.com/kfsoftware/externalbuilder

Thanks for your attention and feel free to contribute or contact me for any issues :)

Regards.

g2flyer avatar Dec 03 '20 03:12 g2flyer

PR #539 demonstrates FPC deployment using K8s.

mbrandenburger avatar Apr 12 '21 12:04 mbrandenburger