Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add nodekey to bootnodes #168

Merged
merged 1 commit into from
Sep 17, 2024
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 charts/l2-bootnode/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: l2-bootnode helm chart
name: l2-bootnode
version: 0.0.8
version: 0.0.9
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand Down
46 changes: 22 additions & 24 deletions charts/l2-bootnode/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# l2-bootnode

![Version: 0.0.8](https://img.shields.io/badge/Version-0.0.8-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
![Version: 0.0.9](https://img.shields.io/badge/Version-0.0.9-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)

l2-bootnode helm chart

Expand All @@ -25,7 +25,7 @@ Kubernetes: `>=1.22.0-0`
|-----|------|---------|-------------|
| command[0] | string | `"bash"` | |
| command[1] | string | `"-c"` | |
| command[2] | string | `"geth --datadir \"/l2geth/data\" init /l2geth/genesis/genesis.json && echo \"[Node.P2P] StaticNodes = $L2GETH_PEER_LIST\" > \"/l2geth/config.toml\" && geth --datadir \"/l2geth/data\" --port \"$L2GETH_P2P_PORT\" --syncmode full --networkid \"$CHAIN_ID\" --maxpeers \"$L2GETH_MAX_PEERS\" --netrestrict \"$L2GETH_NETRESTRICT\" --nat \"$L2GETH_NAT\" --bootnodes \"\" --gcmode archive --config \"/l2geth/config.toml\" --cache.noprefetch --verbosity 3 --pprof --pprof.addr \"0.0.0.0\" --pprof.port 6060 $CCC_FLAG $METRICS_FLAGS --txpool.globalqueue 4096 --txpool.globalslots 40960 --txpool.pricelimit \"$L2GETH_MIN_GAS_PRICE\" $LOCALS_FLAG --l1.endpoint \"$L2GETH_L1_ENDPOINT\" --l1.confirmations \"$L2GETH_L1_WATCHER_CONFIRMATIONS\" --l1.sync.startblock \"$L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK\" --miner.gasprice \"$L2GETH_MIN_GAS_PRICE\" --rpc.gascap 0 --gpo.ignoreprice \"$L2GETH_MIN_GAS_PRICE\" --metrics --metrics.expensive $L2GETH_EXTRA_PARAMS"` | |
| command[2] | string | `"geth --datadir \"/l2geth/data\" init /l2geth/genesis/genesis.json && echo ${L2GETH_NODEKEY} > /l2geth/data/geth/nodekey && echo \"[Node.P2P] StaticNodes = $L2GETH_PEER_LIST\" > \"/l2geth/config.toml\" && geth --datadir \"/l2geth/data\" --port \"$L2GETH_P2P_PORT\" --syncmode full --networkid \"$CHAIN_ID\" --maxpeers \"$L2GETH_MAX_PEERS\" --netrestrict \"$L2GETH_NETRESTRICT\" --nat \"$L2GETH_NAT\" --bootnodes \"\" --gcmode archive --config \"/l2geth/config.toml\" --cache.noprefetch --verbosity 3 --pprof --pprof.addr \"0.0.0.0\" --pprof.port 6060 $CCC_FLAG $METRICS_FLAGS --txpool.globalqueue 4096 --txpool.globalslots 40960 --txpool.pricelimit \"$L2GETH_MIN_GAS_PRICE\" $LOCALS_FLAG --l1.endpoint \"$L2GETH_L1_ENDPOINT\" --l1.confirmations \"$L2GETH_L1_WATCHER_CONFIRMATIONS\" --l1.sync.startblock \"$L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK\" --miner.gasprice \"$L2GETH_MIN_GAS_PRICE\" --rpc.gascap 0 --gpo.ignoreprice \"$L2GETH_MIN_GAS_PRICE\" --metrics --metrics.expensive $L2GETH_EXTRA_PARAMS"` | |
| controller.replicas | int | `1` | |
| controller.strategy | string | `"RollingUpdate"` | |
| controller.type | string | `"statefulset"` | |
Expand All @@ -34,28 +34,26 @@ Kubernetes: `>=1.22.0-0`
| defaultProbes.spec.httpGet.path | string | `"/"` | |
| defaultProbes.spec.httpGet.port | int | `8545` | |
| envFrom[0].configMapRef.name | string | `"l2-bootnode-env"` | |
| env[0].name | string | `"L2GETH_NODEKEY"` | |
| env[0].value | string | `""` | |
| env[10].name | string | `"L2GETH_EXTRA_PARAMS"` | |
| env[10].value | string | `""` | |
| env[1].name | string | `"L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK"` | |
| env[1].value | string | `"0"` | |
| env[2].name | string | `"L2GETH_L1_WATCHER_CONFIRMATIONS"` | |
| env[2].value | string | `"0x6"` | |
| env[3].name | string | `"L2GETH_P2P_PORT"` | |
| env[3].value | int | `30303` | |
| env[4].name | string | `"L2GETH_ENABLE_CCC"` | |
| env[4].value | bool | `false` | |
| env[5].name | string | `"L2GETH_CCC_RUST_LOG_LEVEL"` | |
| env[5].value | string | `"info"` | |
| env[6].name | string | `"L2GETH_MAX_PEERS"` | |
| env[6].value | int | `500` | |
| env[7].name | string | `"VERBOSITY"` | |
| env[7].value | int | `3` | |
| env[8].name | string | `"CCC_FLAG"` | |
| env[8].value | string | `"--ccc"` | |
| env[9].name | string | `"L2GETH_MIN_GAS_PRICE"` | |
| env[9].value | string | `"1000000"` | |
| env[0].name | string | `"L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK"` | |
| env[0].value | string | `"0"` | |
| env[1].name | string | `"L2GETH_L1_WATCHER_CONFIRMATIONS"` | |
| env[1].value | string | `"0x6"` | |
| env[2].name | string | `"L2GETH_P2P_PORT"` | |
| env[2].value | int | `30303` | |
| env[3].name | string | `"L2GETH_ENABLE_CCC"` | |
| env[3].value | bool | `false` | |
| env[4].name | string | `"L2GETH_CCC_RUST_LOG_LEVEL"` | |
| env[4].value | string | `"info"` | |
| env[5].name | string | `"L2GETH_MAX_PEERS"` | |
| env[5].value | int | `500` | |
| env[6].name | string | `"VERBOSITY"` | |
| env[6].value | int | `3` | |
| env[7].name | string | `"CCC_FLAG"` | |
| env[7].value | string | `"--ccc"` | |
| env[8].name | string | `"L2GETH_MIN_GAS_PRICE"` | |
| env[8].value | string | `"1000000"` | |
| env[9].name | string | `"L2GETH_EXTRA_PARAMS"` | |
| env[9].value | string | `""` | |
| global.fullnameOverride | string | `"l2-bootnode"` | |
| global.nameOverride | string | `"l2-bootnode"` | |
| image.pullPolicy | string | `"Always"` | |
Expand Down
3 changes: 1 addition & 2 deletions charts/l2-bootnode/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ image:
tag: scroll-v5.7.11

env:
- name: L2GETH_NODEKEY
value: ""
- name: L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK
value: "0"
- name: L2GETH_L1_WATCHER_CONFIRMATIONS
Expand Down Expand Up @@ -46,6 +44,7 @@ command:
"bash",
"-c",
"geth --datadir \"/l2geth/data\" init /l2geth/genesis/genesis.json && \
echo ${L2GETH_NODEKEY} > /l2geth/data/geth/nodekey && \
echo \"[Node.P2P] StaticNodes = $L2GETH_PEER_LIST\" > \"/l2geth/config.toml\" && \
geth --datadir \"/l2geth/data\" \
--port \"$L2GETH_P2P_PORT\" --syncmode full --networkid \"$CHAIN_ID\" --maxpeers \"$L2GETH_MAX_PEERS\" --netrestrict \"$L2GETH_NETRESTRICT\" --nat \"$L2GETH_NAT\" \
Expand Down
3 changes: 2 additions & 1 deletion charts/l2-bootnode/values/production-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ configMaps:
enabled: true
data:
CHAIN_ID: ""
L2GETH_NODEKEY: ""
L2GETH_L1_ENDPOINT: ""
L2GETH_PEER_LIST: ""
L2GETH_PEER_LIST: '[]'
3 changes: 2 additions & 1 deletion charts/l2-bootnode/values/production-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ configMaps:
enabled: true
data:
CHAIN_ID: ""
L2GETH_NODEKEY: ""
L2GETH_L1_ENDPOINT: ""
L2GETH_PEER_LIST: ""
L2GETH_PEER_LIST: '[]'
3 changes: 2 additions & 1 deletion charts/l2-bootnode/values/production-3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ configMaps:
enabled: true
data:
CHAIN_ID: ""
L2GETH_NODEKEY: ""
L2GETH_L1_ENDPOINT: ""
L2GETH_PEER_LIST: ""
L2GETH_PEER_LIST: '[]'
4 changes: 2 additions & 2 deletions charts/scroll-sdk/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: scroll helm charts to deploy scroll sdk
name: scroll-sdk
version: 0.0.32
version: 0.0.33
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand Down Expand Up @@ -66,7 +66,7 @@ dependencies:
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: l1-explorer.enabled
- name: l2-bootnode
version: 0.0.8
version: 0.0.9
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: l2-bootnode.enabled
- name: l2-rpc
Expand Down
4 changes: 2 additions & 2 deletions charts/scroll-sdk/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# scroll-sdk

![Version: 0.0.32](https://img.shields.io/badge/Version-0.0.32-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
![Version: 0.0.33](https://img.shields.io/badge/Version-0.0.33-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)

scroll helm charts to deploy scroll sdk

Expand Down Expand Up @@ -34,7 +34,7 @@ Kubernetes: `>=1.22.0-0`
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | gas-oracle | 0.0.7 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | l1-devnet | 0.0.3 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | l1-explorer | 0.0.2 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | l2-bootnode | 0.0.8 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | l2-bootnode | 0.0.9 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | l2-rpc | 0.0.10 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | l2-sequencer | 0.0.9 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | rollup-explorer-backend | 0.0.3 |
Expand Down
Loading