Skip to content

Commit

Permalink
single sequencer node
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiker committed Feb 1, 2024
1 parent 4086b39 commit ade2969
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions templates/k8s/op-node-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ spec:
- protocol: TCP
name: op-node-p2p
port: 9003
- protocol: UDP
name: op-node-p2p-udp
port: 9003
18 changes: 12 additions & 6 deletions templates/k8s/op-node-sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
matchLabels:
name: op-node
serviceName: op-node
replicas: 2
replicas: 3
template:
metadata:
labels:
Expand Down Expand Up @@ -115,22 +115,26 @@ spec:
args:
- |
op-node \
--l1=$(L1_RPC) \
--l1.rpckind=any \
--l2=http://localhost:8551 \
--l2.jwt-secret=/genesis/jwt.txt \
--sequencer.enabled \
--sequencer.l1-confs=3 \
--verifier.l1-confs=3 \
--rollup.config=/genesis/rollup.json \
--rpc.addr=0.0.0.0 \
--rpc.port=8547 \
--rpc.enable-admin \
--p2p.listen.ip=0.0.0.0 \
--p2p.listen.tcp=9003 \
--p2p.sequencer.key=$${SEQUENCER_KEY#0x} \
--l1=$(L1_RPC) \
--l1.rpckind=any \
--sequencer.enabled=$$([[ $K8S_NODE_NAME = "op-node-0" ]] && echo "true" || echo "false")
--sequencer.l1-confs=3 \
--verifier.l1-confs=3 \
--log.level=debug
env:
- name: K8S_NODE_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: L1_RPC
valueFrom:
configMapKeyRef:
Expand All @@ -146,6 +150,8 @@ spec:
protocol: TCP
- containerPort: 9003
protocol: TCP
- containerPort: 9003
protocol: UDP
volumeMounts:
- mountPath: /data
name: op-node-volume
Expand Down

0 comments on commit ade2969

Please sign in to comment.