Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nahsi committed Feb 5, 2025
1 parent f5bf19b commit 9362ec9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions flux/chain/subgraph/subgraph-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ spec:
- -c
- |
echo "Waiting for graph-node to be ready..."
while true; do
wget -qO- --post-data '{"jsonrpc":"2.0", "method":"eth_chainId", "params":[], "id":1}' \
--header "Content-Type: application/json" \
http://graph-node.chain.svc.cluster.local:8020 | grep -q 'result' && break
while ! wget -qO- http://graph-node.chain.svc.cluster.local:8030 >/dev/null; do
echo "Still waiting for graph-node..."
sleep 5
done
Expand Down
4 changes: 4 additions & 0 deletions flux/chain/subgraph/subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,9 @@ spec:
targetPort: 8020
protocol: TCP
name: admin
- port: 8030
targetPort: 8030
protocol: TCP
name: index
selector:
app: graph-node

0 comments on commit 9362ec9

Please sign in to comment.