Clone aurras-deployment-kubernetes with submodules
git clone https://github.com/HugoByte/aurras-deployment-kubernetes --recurse-submodules
- Navigate to openwhisk setup directory
cd aurras-deployment-kubernetes/openwhisk
- 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
- Get InternalIP of the cluster
- Windows or macOS
kubectl describe nodes | grep InternalIP
- Ubuntu
kubectl describe node kind-worker | grep InternalIP: | awk '{print $2}'
- 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
- Create a namespace
kubectl create namespace aurras
- Deploy Openwhisk using helm
helm install openwhisk ./helm/openwhisk -n aurras -f mycluster.yaml
- Get the summary of installation using
helm status openwhisk -n aurras
- Navigate to aurras-event-feed-substrate setup directory
cd aurras-deployment-kubernetes/openwhisk
- Get InternalIP of the cluster
kubectl describe nodes | grep InternalIP
- 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
-
Add custom type if any for the chain to
helm/config/types.json
-
Deploy Openwhisk using helm
helm install aurras-event-feed-substrate ./helm -n aurras -f mycluster.yaml
- Get the summary of installation using
helm status aurras-event-feed-substrate -n aurras
Licensed under Apache-2.0