https://github.com/hyperledger-bevel/bevel-operator-fabric
Hyperledger Fabric Kubernetes operator - Hyperledger Fabric operator for Kubernetes (v2.3, v2.4 and v2.5, v3.0, v3.1)
https://github.com/hyperledger-bevel/bevel-operator-fabric
blockchain chaincode fabric hacktoberfest hacktoberfest-accepted hyperledger hyperledger-fabric kubernetes operator-sdk
Last synced: about 2 months ago
JSON representation
Hyperledger Fabric Kubernetes operator - Hyperledger Fabric operator for Kubernetes (v2.3, v2.4 and v2.5, v3.0, v3.1)
- Host: GitHub
- URL: https://github.com/hyperledger-bevel/bevel-operator-fabric
- Owner: hyperledger-bevel
- License: apache-2.0
- Created: 2020-11-29T19:02:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-04T11:59:43.000Z (2 months ago)
- Last Synced: 2025-05-04T12:35:27.798Z (2 months ago)
- Topics: blockchain, chaincode, fabric, hacktoberfest, hacktoberfest-accepted, hyperledger, hyperledger-fabric, kubernetes, operator-sdk
- Language: Go
- Homepage: https://hyperledger-bevel.github.io/bevel-operator-fabric/
- Size: 7.31 MB
- Stars: 289
- Watchers: 59
- Forks: 95
- Open Issues: 41
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
---
id: getting-started
title: Getting started
---# Hyperledger Fabric Operator
## Features
- [x] Create certificates authorities (CA)
- [x] Create peers
- [x] Create ordering services
- [x] Create resources without manual provisioning of cryptographic material
- [x] Domain routing with SNI using Istio
- [x] Run chaincode as external chaincode in Kubernetes
- [x] Support Hyperledger Fabric 2.3+ and 3.0
- [x] Managed genesis for Ordering services
- [x] E2E testing including the execution of chaincodes in KIND
- [x] Renewal of certificates## Stay Up-to-Date
`hlf-operator` is currently in stable. Watch **releases** of this repository to be notified for future updates:

## Discord
For discussions and questions, please join the Hyperledger Foundation Discord:
[https://discord.com/invite/hyperledger](https://discord.com/invite/hyperledger)
The channel is located under `BEVEL`, named [`bevel-operator-fabric`](https://discordapp.com/channels/905194001349627914/967823782712594442).
## Hyperledger Meetups
You can watch this video to see how to use it to deploy your own network:
[](https://www.youtube.com/watch?v=4taLwa_pl9U "Deploying a Network Using SmartBFT in Hyperledger Fabric 3.0")
[](https://www.youtube.com/watch?v=vM_UzryCOqs "Hyperledger Fabric on Kubernetes")
[](http://www.youtube.com/watch?v=namKDeJf5QI "Hyperledger Fabric on Kubernetes")## Tutorial Videos
Step-by-step video tutorials to setup hlf-operator in Kubernetes
[](https://www.youtube.com/playlist?list=PLuAZTZDgj0csRQuNMY8wbYqOCpzggAuMo "Hyperledger Fabric on Kubernetes")
This workshop provides an in-depth hands on discussion and demonstration of using Bevel and the new Bevel-Operator-Fabric to deploy Hyperledger Fabric on Kubernetes.
## Hyperledger Workshops
This workshop provides an in-depth, hands-on discussion and demonstration of using Bevel and the new Bevel-Operator-Fabric to deploy Hyperledger Fabric on Kubernetes.
[](https://www.youtube.com/live/YUC12ahY5_k?feature=share&t=4430)
## Sponsor
| | |
|-------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|  | Gala Games is a blockchain gaming platform that empowers players to earn cryptocurrencies and NFTs through gameplay. Founded in 2018 by Eric Schiermeyer, co-founder of Zynga, it aims to create a new type of gaming experience. The platform offers limited edition NFTs and allows players to earn Gala tokens |
|  | If you want to design and deploy a secure Blockchain network based on the latest version of Hyperledger Fabric, feel free to contact [email protected] or visit [https://kfs.es/blockchain](https://kfs.es/blockchain) |## Getting started
# Tutorial
Resources:
- [Hyperledger Fabric build ARM](https://www.polarsparc.com/xhtml/Hyperledger-ARM-Build.html)## Create Kubernetes Cluster
To start deploying our red fabric we have to have a Kubernetes cluster. For this we will use KinD.
Ensure you have these ports available before creating the cluster:
- 80
- 443If these ports are not available this tutorial will not work.
### Using K3D
```bash
k3d cluster create -p "80:30949@agent:0" -p "443:30950@agent:0" --agents 2 k8s-hlf
```### Using KinD
```bash
cat << EOF > kind-config.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
image: kindest/node:v1.30.2
extraPortMappings:
- containerPort: 30949
hostPort: 80
- containerPort: 30950
hostPort: 443
EOFkind create cluster --config=./kind-config.yaml
```
## Install Kubernetes operator
In this step we are going to install the kubernetes operator for Fabric, this will install:
- CRD (Custom Resource Definitions) to deploy Certification Fabric Peers, Orderers and Authorities
- Deploy the program to deploy the nodes in KubernetesTo install helm: [https://helm.sh/docs/intro/install/](https://helm.sh/docs/intro/install/)
```bash
helm repo add kfs https://kfsoftware.github.io/hlf-helm-charts --force-updatehelm install hlf-operator --version=1.11.1 -- kfs/hlf-operator
```### Install the Kubectl plugin
To install the kubectl plugin, you must first install Krew:
[https://krew.sigs.k8s.io/docs/user-guide/setup/install/](https://krew.sigs.k8s.io/docs/user-guide/setup/install/)Afterwards, the plugin can be installed with the following command:
```bash
kubectl krew install hlf
```### Install Istio
Install Istio binaries on the machine:
```bash
curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.23.3 sh -
```Install Istio on the Kubernetes cluster:
```bash
kubectl create namespace istio-system
export ISTIO_PATH=$(echo $PWD/istio-*/bin)
export PATH="$PATH:$ISTIO_PATH"istioctl operator init
kubectl apply -f - < "metadata.json"
{
"type": "ccaas",
"label": "${CHAINCODE_LABEL}"
}
METADATA-EOF
## chaincode as a service
```### Prepare connection file
```bash
cat > "connection.json" <