Skip to content

ultraio/substreams-charts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

substreams-charts

Helm repository for substreams charts.

For minikube testing

Prerequisites

Make sure you have all these applications available.

  • minikube
  • helm
  • kubectl
  • docker
  • [Optional] substreams CLI

Start minikube

Make sure docker is running.

minikube start

Deploy producer chart.

helm install producer ./charts/producer

Make sure to wait until the producer pod is ready.

kubectl get pod
NAME         READY   STATUS    RESTARTS   AGE
producer-0   1/1     Running   0          57s

Deploy firehose-antelope chart.

helm install firehose-antelope ./charts/firehose-antelope -f ./local-test-values.yaml

If the deployment has no error, you should see this

kubectl get pod
NAME                       READY   STATUS    RESTARTS   AGE
firehose-0                 0/1     Running   0          2m27s
merger-0                   1/1     Running   0          2m27s
producer-0                 1/1     Running   0          3m19s
reader-node-0              1/1     Running   0          2m27s
relayer-7fc86d45cc-dz8vz   1/1     Running   0          2m27s
substreams-tier1-0         1/1     Running   0          2m27s
substreams-tier2-0         1/1     Running   0          2m27s

Test with substreams CLI

Make sure to have Substreams Modules Repo built.

Port forwarding

kubectl port-forward service/substreams-tier1 9000:9000

Run substreams CLI

substreams run -e localhost:9000 ULTRA_PATH/substreams-modules/eosio.token/substreams.yaml map_transfers --start-block 2 --stop-block 100 --plaintext

To stop minikube

minikube stop

[Recommended] To delete persistent data before starting a new test

minikube delete