Skip to content

Commit

Permalink
Set blockscout k8s deployments to include erlang node name (#8476)
Browse files Browse the repository at this point in the history
* Set ws port to the same as http for blockscout.

* Add default values for sourcify.

* Apply node names to blockscout startup commands.

* Use default route instead of localhost for node name.

* Set full node name in deployments.

* Rename nodeName to erlangNodeName.

* Remove duplicate sourcify.
  • Loading branch information
rkachowski authored Aug 6, 2021
1 parent f539ac1 commit 291614e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
- -c
args:
- |
exec mix cmd --app block_scout_web "iex -e 'IEx.configure(default_prompt: \"\", alive_prompt: \"\")' -S mix phx.server"
exec mix cmd --app block_scout_web "iex --name {{ .Values.blockscout.api.erlangNodeName}}@0.0.0.0 -e 'IEx.configure(default_prompt: \"\", alive_prompt: \"\")' -S mix phx.server"
ports:
- name: http
containerPort: {{ .Values.blockscout.api.port }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
- -c
args:
- |
exec mix cmd --app indexer "iex -e 'IEx.configure(default_prompt: \"\", alive_prompt: \"\")' -S mix"
exec mix cmd --app indexer "iex --name {{ .Values.blockscout.indexer.erlangNodeName}}@0.0.0.0 -e 'IEx.configure(default_prompt: \"\", alive_prompt: \"\")' -S mix"
ports:
- name: health
containerPort: {{ .Values.blockscout.indexer.port }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
- -c
args:
- |
exec mix cmd --app block_scout_web "iex -e 'IEx.configure(default_prompt: \"\", alive_prompt: \"\")' -S mix phx.server"
exec mix cmd --app block_scout_web "iex --name {{ .Values.blockscout.web.erlangNodeName}}@0.0.0.0 -e 'IEx.configure(default_prompt: \"\", alive_prompt: \"\")' -S mix phx.server"
ports:
- name: http
containerPort: {{ .Values.blockscout.web.port }}
Expand Down
5 changes: 4 additions & 1 deletion packages/helm-charts/blockscout/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ blockscout:
requests:
memory: 1000Mi
cpu: 2
erlangNodeName: blockscout-indexer
api:
port: 4000
strategy:
Expand Down Expand Up @@ -98,6 +99,7 @@ blockscout:
requests:
memory: 500Mi
cpu: 500m
erlangNodeName: blockscout-api
web:
port: 4000
strategy:
Expand Down Expand Up @@ -153,6 +155,7 @@ blockscout:
requests:
memory: 250M
cpu: 500m
erlangNodeName: blockscout-web
image:
repository: gcr.io/celo-testnet/blockscout
tag: v2.0.4-beta-celo
Expand All @@ -165,7 +168,7 @@ blockscout:
name: blockscout
drop: "false"
jsonrpc_http_url: http://tx-nodes-private:8545
jsonrpc_ws_url: ws://tx-nodes-private:8546
jsonrpc_ws_url: ws://tx-nodes-private:8545
metadata_crawler:
schedule: "*/30 * * * *"
image:
Expand Down

0 comments on commit 291614e

Please sign in to comment.