|
| 1 | +# Ansible managed. Don't change this file manually. Template info: /vendor/collections/ansible_collections/ethpandaops/general/roles/generate_kubernetes_config/templates/ethereum-node.yaml.j2 |
| 2 | + |
| 3 | +lodestar-besu-001: |
| 4 | + global: |
| 5 | + main: |
| 6 | + network: bal-devnet-1 |
| 7 | + engineEndpoint: http://besu-lodestar-001:8551 |
| 8 | + rpcEndpoint: http://besu-lodestar-001:8545 |
| 9 | + beaconEndpoint: http://lodestar-besu-001:5052 |
| 10 | + checkpointSync: |
| 11 | + enabled: false |
| 12 | + addresses: |
| 13 | + bal-devnet-1: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.bal-devnets.node_ingress.combined}>@bn-hc-bootnode-1.bal-devnet-1.ethpandaops.io |
| 14 | + clientArgs: |
| 15 | + networks: |
| 16 | + bal-devnet-1: |
| 17 | + execution: |
| 18 | + besu: |
| 19 | + - --genesis-file=/data/network-config/besu.json |
| 20 | + - --rpc-http-api=ADMIN,DEBUG,ETH,MINER,NET,TRACE,TXPOOL,WEB3 |
| 21 | + - --sync-mode=FULL |
| 22 | + - --data-storage-format=BONSAI |
| 23 | + - --bonsai-limit-trie-logs-enabled=false |
| 24 | + - --bootnodes=enode://b6ea0654360d2f380c3a138e7a0b2a773bdac6c7f591e34ca2ed0c092cbe9a1eb5b49662c75c45bb43047db6eef8c34d02805c3562106c8c8722cdf48ee9c1a8@167.235.68.172:30303 |
| 25 | + - --logging DEBUG |
| 26 | + nethermind: |
| 27 | + - --Init.ChainSpecPath=/data/network-config/chainspec.json |
| 28 | + - --JsonRpc.EnabledModules=Eth,Subscribe,Trace,TxPool,Web3,Personal,Proof,Net,Parity,Health,Rpc,Debug,Admin |
| 29 | + - --Pruning.Mode=None |
| 30 | + - --config=none |
| 31 | + - --log=INFO |
| 32 | + - --Seq.MinLevel=Info |
| 33 | + - --Seq.ServerUrl=https://seq.nethermind.io |
| 34 | + - --Seq.ApiKey=yuOqjKOHhZCw2D2U7pmL |
| 35 | + - --Metrics.PushGatewayUrl=http://94.237.52.161:9000/metrics/nethermind-iudiy4raagaizaih1phuaShekighoJ2ixaecahvii7ohte3oozeeh0eTh7Aich1Shee9ceetuy3iGhexoh5naithoot8rebi7fee |
| 36 | + - --Discovery.Bootnodes=enode://b6ea0654360d2f380c3a138e7a0b2a773bdac6c7f591e34ca2ed0c092cbe9a1eb5b49662c75c45bb43047db6eef8c34d02805c3562106c8c8722cdf48ee9c1a8@167.235.68.172:30303 |
| 37 | + geth: |
| 38 | + - --http.api=eth,net,web3,debug,admin,txpool,trace |
| 39 | + - --http.vhosts=* |
| 40 | + - --networkid=7029915638 |
| 41 | + - --syncmode=full |
| 42 | + - --history.state=0 |
| 43 | + - --gcmode=archive |
| 44 | + - --syncmode=full |
| 45 | + - --bootnodes=enode://b6ea0654360d2f380c3a138e7a0b2a773bdac6c7f591e34ca2ed0c092cbe9a1eb5b49662c75c45bb43047db6eef8c34d02805c3562106c8c8722cdf48ee9c1a8@167.235.68.172:30303,enode://e452c1d148d86f48c38acd7561e3a3518e41b8141a604d2a332e9350ed4bea3c685c9dbd4c3fac242906479ad9eb2373cb7501a9c37637d9e42262d1f6128910@91.98.138.241:30303 |
| 46 | + - --rpc.allow-unprotected-txs |
| 47 | + erigon: |
| 48 | + - --chain=dev |
| 49 | + - --http.api=eth,erigon,engine,web3,net,debug,trace,txpool,admin |
| 50 | + - --http.vhosts=* |
| 51 | + - --ws |
| 52 | + - --prune=htc |
| 53 | + - --networkid=7029915638 |
| 54 | + - --db.size.limit=500GB |
| 55 | + - --bootnodes=enode://d5c0bd49166a920cc6bf408b39adcd4b88778eef21199bd9543f63cefd60f84680ae56afb3df81a2336f6c1b52e8e3961d0f72fdb4a5f378dbb2e5d5f24794bf@91.98.138.241:9010,enode://e452c1d148d86f48c38acd7561e3a3518e41b8141a604d2a332e9350ed4bea3c685c9dbd4c3fac242906479ad9eb2373cb7501a9c37637d9e42262d1f6128910@91.98.138.241:30303?discport=30303 |
| 56 | + ethereumjs: |
| 57 | + consensus: |
| 58 | + lodestar: |
| 59 | + - --paramsFile=/data/network-config/config.yaml |
| 60 | + - --genesisStateFile=/data/network-config/genesis.ssz |
| 61 | + - --bootnodes=enr:-PC4QCpP9uKlV6B2yQAn29AyY5fntyF0xxHKftrmUvheidyuWbr8ljhaA1RiBovMO9TlJ59YlJnvMrWnAi_Momh0iVkSh2F0dG5ldHOIADAAAAAAAACDY2djgYCEZXRoMpCopcJfgCVVkP__________gmlkgnY0gmlwhKfrRKyDaXA2kCoBBPgcGt6LAAAAAAAAAAGDbmZkhAAAAACJc2VjcDI1NmsxoQIKMkYU0aS8uxBYryDr98OUdLChI8WCBFO9mWLKcH9Bk4hzeW5jbmV0cw-DdGNwgiMohHRjcDaCIyqDdWRwgiMohHVkcDaCIyo,enr:-PC4QGQ8SfUObY9phUZQBMn4B0JxzEZsy6cErdBjBpZul5rjOvXn3p__YyyNy3soVH_yumd3sr70rQUrIrW-MG-JB0USh2F0dG5ldHOIDAAAAAAAAACDY2djgYCEZXRoMpCopcJfgCVVkP__________gmlkgnY0gmlwhHTL4IaDaXA2kCoBBPgcGjAwAAAAAAAAAAGDbmZkhAAAAACJc2VjcDI1NmsxoQK7dJgHcZtwC1D5-mZV0G89uFQWmpykiCv77On2F0sY-IhzeW5jbmV0cw-DdGNwgiMohHRjcDaCIyqDdWRwgiMohHVkcDaCIyo |
| 62 | + - --persistNetworkIdentity |
| 63 | + - --rest.namespace="*" |
| 64 | + - --nat=true |
| 65 | + - --disablePeerScoring |
| 66 | + - --serveHistoricalState |
| 67 | + - --checkpointSyncUrl=https://checkpoint-sync.bal-devnet-1.ethpandaops.io/ |
| 68 | + - --forceCheckpointSync |
| 69 | + - --network.connectToDiscv5Bootnodes |
| 70 | + teku: |
| 71 | + - --network=/data/network-config/config.yaml |
| 72 | + - --genesis-state=/data/network-config/genesis.ssz |
| 73 | + - --p2p-discovery-bootnodes=enr:-LG4QO5ezbzcEfHnxLSUwCZuLbN6sY7xp3VCTirRZRIoPK_hZmuHp8ziS6lO8ERk-GeJEu-0vQeJgKfoQIuliznvTicDg2V0aMvKhJ1SoMeEaUQq7oRldGgykKilwl________________-CaWSCdjSCaXCEW2KK8YlzZWNwMjU2azGhA9XAvUkWapIMxr9AizmtzUuId47vIRmb2VQ_Y879YPhGg3RjcIIjMoN1ZHCCIzI,enr:-Pm4QOYEe9_wz-CqsVBWk_DvwddeZlsfLMqMoqCVk7RSycClE_qUor-tMvf5QoG57hc9Q5ifqD49Yv6dpdz7zU9S-9iBl4dhdHRuZXRziAAAAAAAwAAAg2NnY4GAhGV0aDKQqKXCX4AlVZD__________4JpZIJ2NIJpcIRbYorxg2lwNpAqAQT4HB7TTAAAAAAAAAABg25mZIQAAAAAiXNlY3AyNTZrMaED3b_9xNMXdFxy4j6gKGMxDtPWoj-bZole6Fg2JLnAN3-Ic3luY25ldHOIAAAAAAAAAACDdGNwgiMohHRjcDaCIyqDdWRwgiMohHVkcDaCIyo |
| 74 | + - --p2p-peer-upper-bound=100 |
| 75 | + - --data-storage-non-canonical-blocks-enabled=true |
| 76 | + - --data-storage-mode=PRUNE |
| 77 | + - --logging=info |
| 78 | + - --Xlog-include-p2p-warnings-enabled |
| 79 | + - --metrics-block-timing-tracking-enabled |
| 80 | + - --ignore-weak-subjectivity-period-enabled |
| 81 | + - --rest-api-docs-enabled |
| 82 | + prysm: |
| 83 | + - --grpc-gateway-corsdomain=* |
| 84 | + - --chain-config-file=/data/network-config/config.yaml |
| 85 | + - --genesis-state=/data/network-config/genesis.ssz |
| 86 | + - --contract-deployment-block=0 |
| 87 | + - --min-sync-peers=1 |
| 88 | + - --enable-debug-rpc-endpoints |
| 89 | + - --verbosity=debug |
| 90 | + - --subscribe-all-subnets |
| 91 | + - --bootstrap-node=enr:-LG4QO5ezbzcEfHnxLSUwCZuLbN6sY7xp3VCTirRZRIoPK_hZmuHp8ziS6lO8ERk-GeJEu-0vQeJgKfoQIuliznvTicDg2V0aMvKhJ1SoMeEaUQq7oRldGgykKilwl________________-CaWSCdjSCaXCEW2KK8YlzZWNwMjU2azGhA9XAvUkWapIMxr9AizmtzUuId47vIRmb2VQ_Y879YPhGg3RjcIIjMoN1ZHCCIzI |
| 92 | + - --bootstrap-node=enr:-Pm4QOYEe9_wz-CqsVBWk_DvwddeZlsfLMqMoqCVk7RSycClE_qUor-tMvf5QoG57hc9Q5ifqD49Yv6dpdz7zU9S-9iBl4dhdHRuZXRziAAAAAAAwAAAg2NnY4GAhGV0aDKQqKXCX4AlVZD__________4JpZIJ2NIJpcIRbYorxg2lwNpAqAQT4HB7TTAAAAAAAAAABg25mZIQAAAAAiXNlY3AyNTZrMaED3b_9xNMXdFxy4j6gKGMxDtPWoj-bZole6Fg2JLnAN3-Ic3luY25ldHOIAAAAAAAAAACDdGNwgiMohHRjcDaCIyqDdWRwgiMohHVkcDaCIyo |
| 93 | + lighthouse: |
| 94 | + - --testnet-dir=/data/network-config |
| 95 | + - --boot-nodes=enr:-LG4QO5ezbzcEfHnxLSUwCZuLbN6sY7xp3VCTirRZRIoPK_hZmuHp8ziS6lO8ERk-GeJEu-0vQeJgKfoQIuliznvTicDg2V0aMvKhJ1SoMeEaUQq7oRldGgykKilwl________________-CaWSCdjSCaXCEW2KK8YlzZWNwMjU2azGhA9XAvUkWapIMxr9AizmtzUuId47vIRmb2VQ_Y879YPhGg3RjcIIjMoN1ZHCCIzI,enr:-Pm4QOYEe9_wz-CqsVBWk_DvwddeZlsfLMqMoqCVk7RSycClE_qUor-tMvf5QoG57hc9Q5ifqD49Yv6dpdz7zU9S-9iBl4dhdHRuZXRziAAAAAAAwAAAg2NnY4GAhGV0aDKQqKXCX4AlVZD__________4JpZIJ2NIJpcIRbYorxg2lwNpAqAQT4HB7TTAAAAAAAAAABg25mZIQAAAAAiXNlY3AyNTZrMaED3b_9xNMXdFxy4j6gKGMxDtPWoj-bZole6Fg2JLnAN3-Ic3luY25ldHOIAAAAAAAAAACDdGNwgiMohHRjcDaCIyqDdWRwgiMohHVkcDaCIyo |
| 96 | + nimbus: |
| 97 | + - --network=/data/network-config |
| 98 | + - --validator-monitor-auto=false |
| 99 | + - --doppelganger-detection=off |
| 100 | + - --log-level=INFO |
| 101 | + - --light-client-data-serve=false |
| 102 | + - --bootstrap-node=enr:-LG4QO5ezbzcEfHnxLSUwCZuLbN6sY7xp3VCTirRZRIoPK_hZmuHp8ziS6lO8ERk-GeJEu-0vQeJgKfoQIuliznvTicDg2V0aMvKhJ1SoMeEaUQq7oRldGgykKilwl________________-CaWSCdjSCaXCEW2KK8YlzZWNwMjU2azGhA9XAvUkWapIMxr9AizmtzUuId47vIRmb2VQ_Y879YPhGg3RjcIIjMoN1ZHCCIzI |
| 103 | + - --bootstrap-node=enr:-Pm4QOYEe9_wz-CqsVBWk_DvwddeZlsfLMqMoqCVk7RSycClE_qUor-tMvf5QoG57hc9Q5ifqD49Yv6dpdz7zU9S-9iBl4dhdHRuZXRziAAAAAAAwAAAg2NnY4GAhGV0aDKQqKXCX4AlVZD__________4JpZIJ2NIJpcIRbYorxg2lwNpAqAQT4HB7TTAAAAAAAAAABg25mZIQAAAAAiXNlY3AyNTZrMaED3b_9xNMXdFxy4j6gKGMxDtPWoj-bZole6Fg2JLnAN3-Ic3luY25ldHOIAAAAAAAAAACDdGNwgiMohHRjcDaCIyqDdWRwgiMohHVkcDaCIyo |
| 104 | + |
| 105 | + |
| 106 | + besu: |
| 107 | + enabled: true |
| 108 | + fullnameOverride: besu-lodestar-001 |
| 109 | + image: |
| 110 | + repository: ethpandaops/besu |
| 111 | + tag: bal-devnet-1 |
| 112 | + pullPolicy: Always |
| 113 | + p2pNodePort: |
| 114 | + enabled: true |
| 115 | + port: 31151 |
| 116 | + persistence: |
| 117 | + enabled: true |
| 118 | + size: 100Gi |
| 119 | + podLabels: |
| 120 | + network: bal-devnet-1 |
| 121 | + testnet: bal-devnet-1 |
| 122 | + ethereum_network: bal-devnet-1 |
| 123 | + ethereum_role: execution |
| 124 | + consensus_client: lodestar |
| 125 | + execution_client: besu |
| 126 | + ethereum_instance: besu-lodestar-001 |
| 127 | + resources: |
| 128 | + requests: |
| 129 | + cpu: 2000m |
| 130 | + memory: 5Gi |
| 131 | + limits: |
| 132 | + cpu: 3000m |
| 133 | + memory: 7Gi |
| 134 | + initContainers: |
| 135 | + - name: init-config |
| 136 | + image: alpine:latest |
| 137 | + imagePullPolicy: IfNotPresent |
| 138 | + securityContext: |
| 139 | + runAsNonRoot: false |
| 140 | + runAsUser: 0 |
| 141 | + command: |
| 142 | + - sh |
| 143 | + - -ace |
| 144 | + - > |
| 145 | + CHAINSPEC_URI=https://config.bal-devnet-1.ethpandaops.io/el/chainspec.json; |
| 146 | + GENESIS_URI=https://config.bal-devnet-1.ethpandaops.io/el/genesis.json; |
| 147 | + BESU_GENESIS_URI=https://config.bal-devnet-1.ethpandaops.io/el/besu.json; |
| 148 | + ENODES_URI=https://config.bal-devnet-1.ethpandaops.io/el/enodes.txt; |
| 149 | + mkdir -p /data/network-config; |
| 150 | + if ! [ -f /data/network_config_init_done ]; |
| 151 | + then |
| 152 | + apk update && apk add curl jq; |
| 153 | + wget -O /data/network-config/chainspec.json $CHAINSPEC_URI; |
| 154 | + wget -O /data/network-config/genesis.json $GENESIS_URI; |
| 155 | + wget -O /data/network-config/besu.json $BESU_GENESIS_URI; |
| 156 | + wget -O /data/network-config/enodes.txt $ENODES_URI; |
| 157 | + cat /data/network-config/genesis.json | jq -r '.config.chainId' > /data/network-config/chainid.txt; |
| 158 | + touch /data/network_config_init_done; |
| 159 | + echo "network config init done"; |
| 160 | + else |
| 161 | + echo "network config already present"; |
| 162 | + fi; |
| 163 | + echo "bootnode init done: $(cat /data/network-config/enodes.txt)"; |
| 164 | + volumeMounts: |
| 165 | + - name: storage |
| 166 | + mountPath: "/data" |
| 167 | + |
| 168 | + lodestar: |
| 169 | + checkpointSync: |
| 170 | + enabled: false |
| 171 | + addresses: |
| 172 | + bal-devnet-1: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.bal-devnets.node_ingress.combined}>@bn-hc-bootnode-1.bal-devnet-1.ethpandaops.io |
| 173 | + enabled: true |
| 174 | + fullnameOverride: lodestar-besu-001 |
| 175 | + image: |
| 176 | + repository: ethpandaops/lodestar |
| 177 | + tag: bal-devnet-1 |
| 178 | + pullPolicy: Always |
| 179 | + mode: "beacon" |
| 180 | + p2pNodePort: |
| 181 | + enabled: true |
| 182 | + port: 32151 |
| 183 | + podLabels: |
| 184 | + network: bal-devnet-1 |
| 185 | + testnet: bal-devnet-1 |
| 186 | + ethereum_network: bal-devnet-1 |
| 187 | + ethereum_role: consensus |
| 188 | + consensus_client: lodestar |
| 189 | + execution_client: besu |
| 190 | + ethereum_instance: lodestar-besu-001 |
| 191 | + resources: |
| 192 | + requests: |
| 193 | + cpu: 2000m |
| 194 | + memory: 5Gi |
| 195 | + limits: |
| 196 | + cpu: 3000m |
| 197 | + memory: 7Gi |
| 198 | + persistence: |
| 199 | + enabled: true |
| 200 | + size: 200Gi |
| 201 | + initContainers: |
| 202 | + - name: init-genesis |
| 203 | + image: alpine:latest |
| 204 | + imagePullPolicy: IfNotPresent |
| 205 | + securityContext: |
| 206 | + runAsNonRoot: false |
| 207 | + runAsUser: 0 |
| 208 | + command: |
| 209 | + - sh |
| 210 | + - -ace |
| 211 | + - > |
| 212 | + apk add jq curl sed; |
| 213 | + DEPOSIT_CONTRACT_URI=https://config.bal-devnet-1.ethpandaops.io/cl/deposit_contract.txt; |
| 214 | + DEPOSIT_CONTRACT_BLOCK_URI=https://config.bal-devnet-1.ethpandaops.io/cl/deposit_contract_block.txt; |
| 215 | + DEPOSIT_CONTRACT_BLOCK_HASH_URI=https://config.bal-devnet-1.ethpandaops.io/cl/deposit_contract_block_hash.txt; |
| 216 | + GENESIS_CONFIG_URI=https://config.bal-devnet-1.ethpandaops.io/cl/config.yaml; |
| 217 | + GENESIS_SSZ_URI=https://config.bal-devnet-1.ethpandaops.io/cl/genesis.ssz; |
| 218 | + mkdir -p /data/network-config; |
| 219 | + curl -s https://config.bal-devnet-1.ethpandaops.io/api/v1/nodes/inventory | jq -r '.ethereum_pairs[] | .consensus.enr' > /data/network-config/bootstrap_nodes.txt; |
| 220 | + if ! [ -f /data/network-config/genesis.ssz ]; |
| 221 | + then |
| 222 | + wget -O /data/network-config/deposit_contract.txt $DEPOSIT_CONTRACT_URI; |
| 223 | + wget -O /data/network-config/deposit_contract_block.txt $DEPOSIT_CONTRACT_BLOCK_URI; |
| 224 | + wget -O /data/network-config/deposit_contract_block_hash.txt $DEPOSIT_CONTRACT_BLOCK_HASH_URI; |
| 225 | + wget -O /data/network-config/config.yaml $GENESIS_CONFIG_URI; |
| 226 | + wget -O /data/network-config/genesis.ssz $GENESIS_SSZ_URI; |
| 227 | + echo "genesis init done"; |
| 228 | + else |
| 229 | + echo "genesis exists. skipping..."; |
| 230 | + fi; |
| 231 | + (tr '\n' ',' < /data/network-config/bootstrap_nodes.txt | sed 's/[^,]*/"&"/g') > /data/network-config/bootstrap_nodes2.txt; |
| 232 | + mv /data/network-config/bootstrap_nodes2.txt /data/network-config/bootstrap_nodes.txt; |
| 233 | + echo "bootnode init done: $(cat /data/network-config/bootstrap_nodes.txt)"; |
| 234 | + volumeMounts: |
| 235 | + - name: storage |
| 236 | + mountPath: "/data" |
0 commit comments