Git Product home page Git Product logo

hgf-k8s-workshop's Introduction

Table of Contents

HGF K8S Workshop

Hyperledger Global Forum workshop on deploying Hyperledger Fabric on Kubernetes in development and production.

You may wish to explore https://github.com/aidtechnology/nephos, which helps automate the deployment of similar examples as presented here.

Workshop flow

Cluster creation

In the workshop we demonstrate how to create a managed K8S cluster on Azure:

export GROUP=hgf-workshop
export LOCATION=westeurope

az group create -n $GROUP -l $LOCATION
az aks create -g $GROUP -n ${GROUP}-aks -s Standard_DS2_v2 --kubernetes-version 1.11.5 --node-count 5
az aks get-credentials -g $GROUP -n ${GROUP}-aks

Then you can install Helm, using

kubectl create -f ./helm-rbac.yaml

helm init --service-account tiller

Finally, add the incubator repository, so you are able to install Kafka, etc.

helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/

helm repo update

Development example

We will start with the dev_example, using Cryptogen to set up the identities and cryptographic material.

This is sufficient for Development purposes and will use a very simple setup of 1 peer and 1 (solo) orderer.

Production example

In the second part of the workshop, prod_example, we will be using the Fabric CA to provide the identities and cryptographic material.

This uses as production-ready setup implementing Certificate Authorities persisting identities to PostgreSQL, multiple peers and multiple (Kafka-consensus) orderers.

Cleanup

If you use Azure AKS, you can just delete the resource group and associated AKS cluster in one fell swoop.

az group delete -n $GROUP

Extra resources

Repositories

Our charts can be found at the official Helm Charts repository:

https://github.com/helm/charts

And also on our own open-source repository:

https://github.com/aidtechnology/at-charts

We also have a repository hosting the Fabric CA client Homebrew installer (for OS X):

https://github.com/aidtechnology/homebrew-fabric-ca

Courses

Blockchain for Business - An Introduction to Hyperledger Technologies, where we have contributed the Hyperledger Composer chapter:

https://www.edx.org/course/blockchain-business-introduction-linuxfoundationx-lfs171x-0

Blockchain for Blockchain Applications on Packt and Udemy:

https://www.packtpub.com/application-development/hyperledger-blockchain-applications-video

https://www.udemy.com/hyperledger-for-blockchain-applications/

FAQ

In progress

hgf-k8s-workshop's People

Contributors

alexvicegrab avatar dattakudale avatar nicolapaoli avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.