cello icon indicating copy to clipboard operation
cello copied to clipboard

Add Kubernetes support to Cello

Open YoungHypo opened this issue 5 months ago • 3 comments

Background

The current agent (src/agents/hyperledger-fabric) can only run Fabric nodes on Docker, and is tightly coupled to docker.sock and cello-net (see node/service.py, chaincode/service.py). Kubernetes only exists as documentation (docs/agents/fabric-operator.md) — there is no implementation.

Goal

Allow an organization's peer/orderer nodes to run in a Kubernetes cluster, so that when api-engine orchestrates them through the existing REST contract it does not need to be aware of whether the backend is Docker or K8s.

Acceptance

On kind / minikube, bring up a peer; api-engine queries its status as RUNNING through the same REST calls, and chaincode install/commit/invoke completes successfully.

YoungHypo avatar Jun 06 '26 00:06 YoungHypo

@YoungHypo are you working on this issue ? I would love to contribute to this

chaitanyakatore avatar Jun 14 '26 08:06 chaitanyakatore

Hi @YoungHypo,

I am interested in this Kubernetes support work. I understand this is a large feature, so instead of directly attempting the full implementation, I would like to start by studying the current Docker-based Fabric agent flow and preparing a small design/proposal for how a Kubernetes backend can fit behind the existing REST contract.

I can begin by mapping the current Docker-specific logic in node/service.py and chaincode/service.py, identifying which parts are tightly coupled to docker.sock/cello-net, and proposing the first small implementation step for kind/minikube support.

Would this be a useful starting point before implementation?

kafeelraza avatar Jul 02 '26 14:07 kafeelraza

Hi @YoungHypo, I'm interested in working on this issue as part of LFX Mentorship.

From my understanding, the current Hyperledger Fabric agent is tightly coupled to Docker, and this issue aims to introduce a Kubernetes backend so that the existing REST API can orchestrate Fabric nodes without needing to know whether they're running on Docker or Kubernetes.

My plan is to first study:

  • src/agents/hyperledger-fabric
  • node/service.py
  • chaincode/service.py
  • docs/agents/fabric-operator.md

Then I'll identify the Docker-specific components, design an abstraction layer for the runtime backend, and prototype Kubernetes support using Kind/Minikube while keeping the REST API unchanged.

Before I start implementing, I'd like to understand whether there is already a preferred abstraction/interface for supporting multiple orchestration backends, or if proposing one as part of this feature is expected.

Looking forward to contributing and any guidance from the maintainers!

adarshjnv9100 avatar Jul 13 '26 08:07 adarshjnv9100