Skip to content

abhi-bhatra/Rancher-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

rancher-logo-horiz-color

GSoC-Rancher-Demo

Let's see how Rancher helps in easy management of Blockchain Protocols
Demo-Blockchain-Network-over-Rancher

Let's Get Started


  1. Introduction to Rancher
    Rancher is an open-source software which offeres Kubernetes-as-a-Service. It is used to provision and manage Kubernetes clusters. You can import existing clusters, either custom or managed clusters like EKS and GKE, or define and deploy your own with RKE or K3s.

  2. Introduction to Blockchain

blockchain-technology-overview

Blockchain technology is most simply defined as a decentralized, distributed ledger that records the provenance of a digital asset. By inherent design, the data on a blockchain is unable to be modified, which makes it a legitimate disruptor for industries like payments, cybersecurity and healthcare.

2.1. Blockchain Protocol Development
Before we start, remember that blockchain is an immutable chain of records called ‘blocks’ that contains:

  • transactions
  • data
  • files

Blocks are chained together with hashes. Developing a blockchain from scratch and its implementation can take months or years to complete because it requires thorough research. It takes a lot of consideration and time to discover and implement an idea successfully.

  1. We will try to provision multiple blockchain protocols on Kubernetes clusters and then integrate the Rancher to the cluster to provision and manage the complex blockchain infrastructure.

How-to Guide


Setup Rancher on existing cluster

  1. Store the docker images in the private or public Docker registries.
  2. Create a cluster in Azure AKS

cluster

Steps to create AKS Cluster: https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough-portal

  1. Create a Virtual Machine, or You can also run Rancher in your local machine:

Or use:

sudo docker run --privileged -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
  • Check for Rancher Container is up and Running
  • Screenshot from 2022-03-28 07-57-12

  • Run the Web UI of the Rancher: `http://localhost`
  • UI will open:
  • Screenshot from 2022-03-22 14-21-27

    Run the command: kubectl get secret --namespace cattle-system bootstrap-secret -o -go-template='{{.data.bootstrapPassword | base64decode}}{{"\n"}}'

  • Create new passwords for Rancher
  • Now on this tab we can create our new cluster or can import an existing one
  • Import your cluster
  • Screenshot from 2022-03-28 08-02-33

  • Once created, Run the kubectl command below on an existing Kubernetes cluster running a supported Kubernetes version to import it into Rancher:
  • Screenshot from 2022-03-28 08-10-13

Set-Up the k8s cluster on Azure AKS

  1. Ensure that you have k8s tools installed, visit here for more details: https://kubernetes.io/docs/tasks/tools/

  2. Once you created Azure AKS cluster, click on connectand copy the commands into your system Screenshot from 2022-03-28 08-17-32

  3. Create a namespace kubectl create namespace <namespace>

  4. If the docker images are stored in private registries, then create docker certificates, regcred secrets, for pulling images from private registries.

  5. Apply yaml files:

  • configmap
  • secrets
  • pvc
  • deployment
  • service
  1. Sample deployment files for the protocols:

Note: Plan to deploy some more protocols together and manage all the protocols using Rancher Dashboard

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published