
Explore the repository structure for Hyperledger Fabric v2.x on Kubernetes, detailing folders for deployments, services, certificates, artifacts, and chaincode, plus a config map and scripts to automate setup.
Learn how to create a Kubernetes cluster on a cloud provider, select region and version, configure nodes and authentication, and connect with kubectl using the downloaded config.
learn how to mount an NFS drive to a local system, create mount directory, use the server IP, and verify file visibility between server and client on macOS and Linux.
Prepare prerequisites to move the CA configuration to an NFS server for Hyperledger Fabric v2.x on Kubernetes, including updating the order service server config and setting script execution permissions.
Discover how to start up the Hyperledger Fabric CA server on Kubernetes, configuring multiple components, services, and deployments, and verify the CA server is up and running.
Define and configure the orderers service in Kubernetes, map deployment names to the service, expose the protocol and port, and enable interaction with other departments' services.
The lecture covers deploying the orderer components and related services, verifying deployment status, inspecting logs and ports, and confirming the orderer service is up and running.
Set up the cli for all peers in a Kubernetes deployment, configuring containers, certificates, volumes, MSPs, channels, and service communications for a Hyperledger Fabric network.
Start the peer nodes by bringing up Kubernetes services and deployments, verify peers, orderers, and logs, and preview upcoming channel operations and anchor updates.
Learn to create the application channel in Hyperledger Fabric v2.x on Kubernetes by using prepared scripts, configuring the ordering service endpoint, and generating channel artifacts.
Learn how to join the application channel across peers by submitting join proposals, specifying the block, and verifying successful channel joins in a Hyperledger Fabric network.
Create chaincode services and start them on Kubernetes, configure deployments and sensor metadata, apply image policies, validate deployments, and verify chaincode status across multiple services.
Start the api server deployment on kubernetes by applying the config, expose it via port-forward, and validate endpoints with postman to create and manage assets.
Deploy a frontend application by building a Docker image from a base, installing dependencies, copying files, then pushing to a registry and creating a Kubernetes deployment and service.
In this course, you will learn to design and deploy Hyperledger Fabric applications on Kubernetes. This course is specifically designed for those seeking to learn hyperledger fabric deployment on Kubernetes. By the end of the course, you will be able to design, develop and deploy your hyperledger fabric network on any cloud, since we have used the cloud-agnostic approach. This course is completely hands-on and we will be focusing more on the practical approach rather than the theoretical.
What you will learn from this course
By the end of the course, you will be able to design, develop and deploy your hyperledger fabric application on Kubernetes. You will learn the following things
Creating Kubernetes cluster
Setting up NFS Server
Starting up Fabric CA Server
Generating certificates for peers and orderers
Creating artifacts like genesis block, channel transaction, and anchor peers
Creating application channel
Joining application channel
Configuring peers to use external chaincode builder
Starting up peer nodes
Packaging chaincode as per external chaincode builder settings
Starting up chaincode as service in Kubernetes
Approving chaincode
Committing chaincode
Invoking and querying transactions.
Setting up REST API Server
Setting up Frontend Application build over Angular
Hyperledger Explorer Integration
Enabling Hyperledger Fabric Monitoring using Prometheus and Grafana
Setting up an ingress controller and domain configuration.
Enabling SSL on Kubernetes with the help of cert-manager and Let's encrypt
Various Ways for Hyperledger Fabric Deployment
As Hyperledger Fabric components are deployed as containers, everything works fine when running in the localhost. When they are running in different hosts, we need to find a way to make these containers talk to one another.
Static IP By specifying the host IP where a container is running, containers can communicate with each other. Those host IPs are specified using extra_hosts in docker-compose files, and after a container is running, these entries are seen in, etc/hosts. The downside is that things are statically configured, and there are challenges when one needs to add or change the configuration.
Docker Swarm Docker Swarm is a container orchestration tool natively in the Docker environment. In a nutshell, It provides an overlay network for containers across multiple hosts. Those containers on this overlay network can communicate to one another as if they were on a large host. Obviously, the good side is that the original configuration can be used with minimal modification, and no static information such as IP is coded in the configuration.
Kubernetes (k8s) K8s by far is the most popular container orchestration tool. The mechanism is similar to Docker Swarm. The implementation of this approach is much more challenging than the previous two mechanisms but this approach is much more scalable and recommended by the Hyperledger Fabric team.