Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-yaml
exclude: ^(charts/.*/templates/|helmfile/helmfile-.*\.yaml)
exclude: ^(charts/.*/templates/|helmfile/helmfile.*\.yaml)
- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.50.0
hooks:
Expand Down
8 changes: 4 additions & 4 deletions helmfile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ More information about indexing could be found [here](https://thegraph.com/docs/
### Installation
Prepare values in `values` directory first. `<namespace>` can be any string of your choice.
```
helmfile -f helmfile-network.yaml -n <namespace> apply
helmfile -f helmfile.yaml -e network -n <namespace> apply
```

### Install graph-cli and indexer-cli
Expand Down Expand Up @@ -52,7 +52,7 @@ Prepare values in `values` directory first. `<namespace>` can be any string of y
In the example bellow external ethereum mainnet endpoint is used, cause the indexing contract for the example subgraph is located in ethereum mainnet.

```
helmfile -f helmfile-standalone.yaml -n <namespace> apply
helmfile -f helmfile.yaml -e standalone -n <namespace> apply
```

## Potential Installation Bugs and Troubleshooting
Expand Down Expand Up @@ -173,11 +173,11 @@ service:
This would expose ports used by the graph protocol node to the web.
Do note you'll need to run the below commands for changes to be reflected.
```
helmfile -f helmfile-standalone.yaml -n <namespace> apply
helmfile -f helmfile.yaml -e standalone -n <namespace> apply

or

helmfile -f helmfile-network.yaml -n <namespace> apply
helmfile -f helmfile.yaml -e network -n <namespace> apply
```

Once the changed have been applied get the external ip for the the query service.
Expand Down
49 changes: 0 additions & 49 deletions helmfile/helmfile-standalone.yaml

This file was deleted.

29 changes: 29 additions & 0 deletions helmfile/helmfile-network.yaml → helmfile/helmfile.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
helmDefaults:
wait: true

environments:
standalone:
values:
- installIpfs: true
- installIndexer: false
- ipfsEndpoint: "http://ipfs-ipfs:5001/"
network:
values:
- installIpfs: false
- installIndexer: true
- ipfsEndpoint: "https://ipfs.network.thegraph.com"
releases:
- name: postgres
chart: ../charts/postgres
Expand All @@ -16,6 +27,8 @@ releases:
values:
- values/graphprotocol-node-index.yaml
- values/graphprotocol-node.secret.yaml
- config:
ipfs: {{ .Values.ipfsEndpoint }}
needs:
- postgres

Expand All @@ -26,6 +39,8 @@ releases:
values:
- values/graphprotocol-node-query.yaml
- values/graphprotocol-node.secret.yaml
- config:
ipfs: {{ .Values.ipfsEndpoint }}
needs:
- postgres

Expand All @@ -40,6 +55,7 @@ releases:
- postgres
- graphprotocol-node-index
- graphprotocol-node-query
installed: {{ .Values.installIndexer }}

- name: graphprotocol-indexer-service
chart: ../charts/graphprotocol-indexer-service
Expand All @@ -52,3 +68,16 @@ releases:
- postgres
- graphprotocol-node-index
- graphprotocol-node-query
installed: {{ .Values.installIndexer }}

- name: ipfs
chart: ../charts/ipfs
labels:
component: ipfs
values:
- args:
- --migrate=true
# Prevent IPFS from connecting to IPFS network
# It would prevent your files from sharing with network and would prevent your applications from using external files
- --offline
installed: {{ .Values.installIpfs }}