robcxyz / aurras-deployment-kubernetes

Helm Chart Kubernetes deployment configuration for Aurras System

Home Page:https://docs.aurras.hugobyte.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aurras Kubernetes Deployment Configuration

License

Prerequisites

  1. Kubernetes
  2. Helm

Deployment Guide

Clone aurras-deployment-kubernetes with submodules

git clone https://github.com/HugoByte/aurras-deployment-kubernetes --recurse-submodules

Openwhisk

  1. Navigate to openwhisk setup directory
cd aurras-deployment-kubernetes/openwhisk
  1. Label worker nodes
  • Windows or macOS
kubectl label nodes --all openwhisk-role=invoker
  • Ubuntu
kubectl label node kind-worker openwhisk-role=core
kubectl label node kind-worker2 openwhisk-role=invoker
  1. Get InternalIP of the cluster
  • Windows or macOS
kubectl describe nodes | grep InternalIP
  • Ubuntu
kubectl describe node kind-worker | grep InternalIP: | awk '{print $2}'
  1. Creating mycluster.yaml with apiHostName as InternalIP of the nodes from the previous step.
whisk:
  ingress:
    type: NodePort
    apiHostName: <INTERNAL-IP>
    apiHostPort: 31001

nginx:
  httpsNodePort: 31001
  1. Create a namespace
kubectl create namespace aurras
  1. Deploy Openwhisk using helm
helm install openwhisk ./helm/openwhisk -n aurras -f mycluster.yaml
  1. Get the summary of installation using
helm status openwhisk -n aurras

Event Feed - Substrate

  1. Navigate to aurras-event-feed-substrate setup directory
cd aurras-deployment-kubernetes/openwhisk
  1. Get InternalIP of the cluster
kubectl describe nodes | grep InternalIP
  1. Creating mycluster.yaml with environment variables provided below with host of the CHAIN_ENDPOINT and OPENWHISK_API_HOST as InternalIP of the nodes
env:
  - CHAIN_NAME: Node Template
  - CHAIN_ENDPOINT: ws://<INTERNAL-IP>:9944
  - LOGGERS: console,info;file,error,/logs/event-feed.log
  - EXCLUDES: system
  - TYPES_FILE: /configs/types.json #name of the types file should be types.json
  - KAFKA_BROKERS: <INTERNAL-IP>:9092
  - OPENWHISK_API_KEY: 23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP
  - OPENWHISK_API_HOST: https://<INTERNAL-IP>:31001
  - OPENWHISK_NAMESPACE: guest
  - EVENT_RECEIVER: event-receiver
  - TOPICS=balances=<Generated>
  - EVENT_PROCESSOR=substrate-event-processor
  1. Add custom type if any for the chain to helm/config/types.json

  2. Deploy Openwhisk using helm

helm install aurras-event-feed-substrate ./helm -n aurras -f mycluster.yaml
  1. Get the summary of installation using
helm status aurras-event-feed-substrate -n aurras

License

Licensed under Apache-2.0

About

Helm Chart Kubernetes deployment configuration for Aurras System

https://docs.aurras.hugobyte.com/

License:Apache License 2.0


Languages

Language:Smarty 100.0%