Fabric operator is the kubernetes operator to allow a user to stand up fabric CA, Orderer and Peer node using kubectl
$ kubectl apply \
-f https://github.com/hyperledger/cello/blob/master/src/agent/fabric-operator/deploy/crds/fabric_v1alpha1_ca_crd.yaml?raw=true \
-f https://github.com/hyperledger/cello/blob/master/src/agent/fabric-operator/deploy/crds/fabric_v1alpha1_orderer_crd.yaml?raw=true \
-f https://github.com/hyperledger/cello/blob/master/src/agent/fabric-operator/deploy/crds/fabric_v1alpha1_peer_crd.yaml?raw=true
The command should finish successfully if you see messages like the below:
customresourcedefinition.apiextensions.k8s.io/cas.fabric.hyperledger.org created
customresourcedefinition.apiextensions.k8s.io/orderers.fabric.hyperledger.org created
customresourcedefinition.apiextensions.k8s.io/peers.fabric.hyperledger.org created
Once the operator crds get created, start up the controller using the following command
kubectl apply \
-f https://github.com/hyperledger/cello/blob/master/src/agent/fabric-operator/deploy/fabric-operator.yaml?raw=true \
-f https://github.com/hyperledger/cello/blob/master/src/agent/fabric-operator/deploy/operator.yaml?raw=true
The above command starts up the fabric operator controller in your default namespace of your k8s cluster. If you try to use a different namespace, you should download the fabric-operator.yaml file and change the namespace from default to whatever the namespace that you want to use.
wget https://github.com/hyperledger/cello/blob/master/src/agent/fabric-operator/deploy/crds/fabric_v1alpha1_ca_cr.yaml?raw=true -O myca.yaml
kubectl apply -f myca.yaml
after few minutes, your CA node should be up running, you can see it status by using the following command:
kubectl describe ca
To delete the CA node, you can simply do the following command, assume you name your CA ca1st
kubectl delete ca ca1st
wget https://github.com/hyperledger/cello/blob/master/src/agent/fabric-operator/deploy/crds/fabric_v1alpha1_peer_cr.yaml?raw=true -O mypeer.yaml
kubectl apply -f mypeer.yaml
after few minutes, your Peer node should be up running, you can see it status by using the following command:
kubectl describe peer
To delete the peer node, you can simply do the following command, assume you named your peer peer1st:
kubectl delete peer peer1st
wget https://github.com/hyperledger/cello/blob/master/src/agent/fabric-operator/deploy/crds/fabric_v1alpha1_orderer_cr.yaml?raw=true -O myorderer.yaml
kubectl apply -f myorderer.yaml
after few minutes, your orderer node should be up running, you can see it status by using the following command:
kubectl describe orderer
To delete the orderer node, you can simply do the following command, assume you name your orderer orderer1st
kubectl delete orderer orderer1st
To run the operator using the cello API or dashboard follow the instructions here :- Fabric Operator Agent README

This work is licensed under a Creative Commons Attribution 4.0 International License.
No tags have been pushed to this repository yet.