-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathvalues.yaml
More file actions
143 lines (132 loc) · 3.46 KB
/
Copy pathvalues.yaml
File metadata and controls
143 lines (132 loc) · 3.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
---
global:
nameOverride: &app_name l2-bootnode
fullnameOverride: *app_name
controller:
replicas: 1
strategy: RollingUpdate
type: statefulset
image:
repository: scrolltech/l2geth
pullPolicy: Always
tag: v5.2.1-arm64
env:
- name: CHAIN_ID
value: "222222"
- name: L2GETH_ROLE
value: bootnode
- name: L2GETH_NODEKEY
value: ""
- name: L2GETH_PEER_LIST
value: '["enode://848a7d59dd8f60dd1a51160e6bc15c194937855443de9be4b2abd83e11a5c4ac21d61d065448c5c520826fe83f1f29eb5a452daccca27b8113aa897074132507@l2-sequencer:30303"]'
- name: L2GETH_L1_CONTRACT_DEPLOYMENT_BLOCK
value: "0"
- name: L2GETH_L1_ENDPOINT
value: "http://l1-devnet:8545"
- name: L2GETH_L1_WATCHER_CONFIRMATIONS
value: "finalized"
- name: L2GETH_P2P_PORT
value: 30303
- name: L2GETH_ENABLE_CCC
value: false
- name: L2GETH_CCC_RUST_LOG_LEVEL
value: info
- name: L2GETH_MAX_PEERS
value: 500
- name: VERBOSITY
value: 3
- name: CCC_FLAG
value: "--ccc"
- name: L2GETH_MIN_GAS_PRICE
value: "1000000"
- name: L2GETH_EXTRA_PARAMS
value: ""
#command: ["bash",
# "-c",
# "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: ["bash",
"-c",
"/script/l2geth-boot.sh"
]
initContainers:
wait-for-other-pod:
image: curlimages/curl
args:
- /bin/sh
- -c
- >
set -x;
while [ $(curl -sw '%{http_code}' "l1-devnet:8545/api" -o /dev/null) -ne 404 ]; do
sleep 5;
done
defaultProbes: &default_probes
enabled: false
custom: true
spec:
httpGet:
path: "/"
port: 8545
probes:
liveness:
<< : *default_probes
readiness:
<< : *default_probes
startup:
<< : *default_probes
persistence:
boot:
enabled: yes
type: configMap
mountPath: /script/
name: l2geth-boot
defaultMode: 0777
data:
enabled: yes
type: pvc
mountPath: /l2geth/data
accessMode: ReadWriteOnce
size: 10Gi
genesis:
enabled: yes
type: configMap
mountPath: /l2geth/genesis/
name: genesis-config
service:
main:
enabled: true
ports:
http:
enabled: true
port: 30303
metrics:
enabled: true
port: 6060
targetPort: 6060
serviceMonitor:
main:
enabled: true
labels:
release: scroll-stack
serviceName: '{{ include "bjw-s.common.lib.chart.names.fullname" $ }}'
endpoints:
- port: metrics
interval: 1m
scrapeTimeout: 10s
path: /debug/metrics/prometheus