hyperledger-bevel / bevel-operator-fabric

Hyperledger Fabric Kubernetes operator - Hyperledger Fabric operator for Kubernetes (v2.3, v2.4 and v2.5, soon 3.0)
https://hyperledger-bevel.github.io/bevel-operator-fabric/
Apache License 2.0
278 stars 93 forks source link

How to add new peers to the existing org #186

Open abhisamant7 opened 1 year ago

abhisamant7 commented 1 year ago

What would you like to be added?

Want to add new peers like if I have 2 peers in an existing org then I can add another one or two peers so I can join them to a different channel.

Why is this needed?

I was looking doc of bevel-operator-fabric however I am unable to find anything on how to add new peers to the existing org. could you please help me how to get it?

Thanks

adityajoshi12 commented 1 year ago

Follow these step

  1. Register the identities for new peer
  2. Create the peer node
  3. join the peer to the channel
vigneshbalu96 commented 1 year ago

After Registering a peer, I try to Deploy the peer but it throws me some error : [$ kubectl hlf peer create --statedb=couchdb --image=$PEER_IMAGE --version=$PEER_VERSION --storage-class=standard --enroll-id=peer --mspid=Org1MSP \ --enroll-pw=peerpw --capacity=5Gi --name=org1-peer0 --ca-name=org1-ca.default \ --hosts=peer0-org1.localho.st --istio-port=443 W1101 12:43:08.129100 13521 warnings.go:70] unknown field "spec.gatewayApi" W1101 12:43:08.129129 13521 warnings.go:70] unknown field "spec.secret.enrollment.component.external" W1101 12:43:08.129135 13521 warnings.go:70] unknown field "spec.secret.enrollment.tls.external" Error: FabricPeer.hlf.kungfusoftware.es "org1-peer0" is invalid: [spec.tag: Invalid value: "": spec.tag in body should be at least 1 chars long, spec.image: Invalid value: "": spec.image in body should be at least 1 chars long]

As I am following this documentation : [https://hyperledger.github.io/bevel-operator-fabric/docs/getting-started/]

adityajoshi12 commented 1 year ago

Hi @vigneshbalu96, did you set the $PEER_IMAGE before creating the peer node?