Kubernetes

Prerequisites

Deployment Guide

  1. Clone aurras-deployment-kubernetes with submodules

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

2. Navigate to aurras-event-feed-substrate setup directory

cd aurras-deployment-kubernetes/aurras-event-feed-substrate

3. Get InternalIP of the cluster

kubectl describe nodes | grep InternalIP

4. Creating mycluster.yaml with environment variables provided below with host of the CHAIN_ENDPOINT and OPENWHISK_API_HOST as InternalIP of the nodes

Assuming the IP returned from the above step 3 as "192.168.65.3"

env:
  - CHAIN_NAME: Node Template
  - CHAIN_ENDPOINT: ws://192.168.65.3: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: 192.168.65.3:9092
  - OPENWHISK_API_KEY: 23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP
  - OPENWHISK_API_HOST: https://192.168.65.3:31001
  - OPENWHISK_NAMESPACE: guest
  - EVENT_RECEIVER: event-receiver
  - TOPICS=balances=<Generated>
  - EVENT_PROCESSOR=substrate-event-processor

5. Add custom type if any for the chain to helm/config/types.json

6. Deploy Openwhisk using helm

helm install aurras-event-feed-substrate ./helm -n aurras -f mycluster.yaml

7. Get the summary of installation using

helm status aurras-event-feed-substrate -n aurras

Last updated