https://github.com/cgbas/fabrick8s
Based on the hitchicker's guide to deploying fabric on kubernetes
https://github.com/cgbas/fabrick8s
Last synced: 5 months ago
JSON representation
Based on the hitchicker's guide to deploying fabric on kubernetes
- Host: GitHub
- URL: https://github.com/cgbas/fabrick8s
- Owner: cgbas
- Created: 2022-04-14T02:37:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-14T03:47:01.000Z (about 4 years ago)
- Last Synced: 2025-07-31T03:30:08.260Z (12 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fabrick8s
Meus estudos baseados em A hitchhikers guide to deploying Hyperledger Fabric on kubernetes
Talk no TDC: https://s3-sa-east-1.amazonaws.com/thedevconf/presentations/TDC2018POA/blockchain/DKH-6936_2018-12-12T062113_hfl_kubernetes_TDC.pdf
***
## O Ambiente
### Cluster local
Vamos começar com um cluster local com 4 nós[^1] e a maneira mais prática para conseguir é com o [Kind](https://kind.sigs.k8s.io/).
Para isso, execute[^2]
```bash
go install sigs.k8s.io/kind@v0.12.0
kind create cluster --name fabrick8s
```
#### Cert-manager
Agora, instale o cert manager no cluster
```bash
helm install stable/cert-manager -n cert-manager --namespace cert-manager
```
E configure os cert-managers de Staging e Produção
```bash
kubectl create -f ./lf-k8s-hlf-webinar/extra/certManagerCI_staging.yaml
kubectl create -f ./lf-k8s-hlf-webinar/extra/certManagerCI_production.yaml
```
## Fabric CA
```
helm install stable/hlf-ca -n ca --namespace blockchain -f ./helm_values/ca_values.yaml
CA_POD=$(kubectl get pods -n blockchain -l "app=hlf-ca,release=ca" -o jsonpath="{.items[0].metadata.name}")
kubectl logs -n blockchain $CA_POD | grep "Listening on"
```
---
[^1]: O [repo](https://github.com/aidtechnology/lf-k8s-hlf-webinar) que originou essa talk está adicionado como um submódulo .
[^2]: A configuração do cluster está no arquivo `kind.yaml`