Skip to content

Commit

Permalink
mothership: update chart & cluster settings
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiker committed Apr 23, 2024
1 parent 7af49d9 commit 7daa4cc
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 32 deletions.
4 changes: 2 additions & 2 deletions charts/mothership/templates/blockscout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ spec:
- name: EMISSION_FORMAT
value: DEFAULT
- name: ETHEREUM_JSONRPC_HTTP_URL
value: http://node-1:{{ .Values.node.opGeth.port.rpc }}/
value: {{ .Values.blockscout.gethRpc }}/
- name: ETHEREUM_JSONRPC_TRACE_URL
value: http://node-1:{{ .Values.node.opGeth.port.rpc }}/
value: {{ .Values.blockscout.gethRpc }}/
- name: ETHEREUM_JSONRPC_VARIANT
value: geth
- name: EXTERNAL_APPS
Expand Down
4 changes: 2 additions & 2 deletions charts/mothership/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ spec:
- --authrpc.jwtsecret=/node/jwt.txt
- --port={{ $.Values.node.opGeth.port.p2p }}
- --discovery.port={{ $.Values.node.opGeth.port.p2p }}
- --rollup.sequencerhttp=http://node-1:{{ $.Values.node.opGeth.port.rpc }}
- --rollup.sequencerhttp={{ $.Values.sequencer.gethRpc }}
- --rollup.disabletxpoolgossip=true
- --syncmode=full
- --gcmode=archive
Expand Down Expand Up @@ -155,7 +155,7 @@ spec:
--l2=http://localhost:{{ $.Values.node.opGeth.port.authrpc }} \
--l2.jwt-secret=/node/jwt.txt \
--rollup.config=/node/rollup.json \
--sequencer.enabled={{ and $.Values.node.sequencerEnabled (eq $index 1) }} \
--sequencer.enabled={{ and $.Values.sequencer.enabled (eq $index $.Values.sequencer.nodeIndex) }} \
--p2p.sequencer.key=$(SEQUENCER_KEY) \
--p2p.priv.path=/node/jwt.txt \
--p2p.peerstore.path=/node/opnode_peerstore_db \
Expand Down
8 changes: 5 additions & 3 deletions charts/mothership/templates/op-batcher.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sequencer.enabled }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand All @@ -7,7 +8,7 @@ spec:
selector:
matchLabels:
name: op-batcher
replicas: {{ .Values.opBatcher.replicas }}
replicas: 1
template:
metadata:
labels:
Expand All @@ -24,8 +25,8 @@ spec:
op-batcher \
--private-key=$(BATCHER_KEY) \
--l1-eth-rpc=$(L1_RPC) \
--l2-eth-rpc=http://node-1:{{ .Values.node.opGeth.port.rpc }} \
--rollup-rpc=http://node-1:{{ .Values.node.opNode.port.rpc }} \
--l2-eth-rpc={{ .Values.sequencer.gethRpc }} \
--rollup-rpc={{ .Values.sequencer.nodeRpc }} \
--rpc.port={{ .Values.opBatcher.port.rpc }} \
--rpc.addr=0.0.0.0 \
--rpc.enable-admin \
Expand All @@ -46,3 +47,4 @@ spec:
ports:
- containerPort: {{ .Values.opBatcher.port.rpc }}
protocol: TCP
{{- end }}
6 changes: 4 additions & 2 deletions charts/mothership/templates/op-proposer.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{{- if .Values.sequencer.enabled }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: op-proposer
namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.opProposer.replicas }}
replicas: 1
selector:
matchLabels:
name: op-proposer
Expand Down Expand Up @@ -40,7 +41,7 @@ spec:
op-proposer \
--private-key=$(PROPOSER_KEY) \
--l1-eth-rpc=$(L1_RPC) \
--rollup-rpc=http://node-1:{{ .Values.node.opNode.port.rpc }} \
--rollup-rpc={{ .Values.sequencer.nodeRpc }} \
--rpc.port={{ .Values.opProposer.port.rpc }} \
--l2oo-address=$(cat /genesis/L2OutputOracleProxyAddress) \
--poll-interval=12s
Expand Down Expand Up @@ -76,3 +77,4 @@ spec:
storageClassName: {{ .Values.storageClassName }}
{{- end }}
volumeMode: Filesystem
{{- end }}
18 changes: 11 additions & 7 deletions charts/mothership/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ genesis:
volume:
storage: 100Mi

sequencer:
enabled: false
nodeIndex: ""
gethRpc: ""
nodeRpc: ""

node:
count: 1
sequencerEnabled: true
loadBalancerExternal: false
opGeth:
image: &op-geth-image us-docker.pkg.dev/oplabs-tools-artifacts/images/op-geth:v1.101308.2
image: &op-geth-image us-docker.pkg.dev/oplabs-tools-artifacts/images/op-geth:v1.101311.0
port: &op-geth-port
rpc: 8545
wsrpc: 8546
Expand All @@ -21,7 +26,7 @@ node:
volume: &op-geth-volume
storage: 100Gi
opNode:
image: &op-node-image us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:v1.7.2
image: &op-node-image us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:v1.7.3
port: &op-node-port
rpc: 8547
p2p: 9003
Expand All @@ -30,19 +35,18 @@ node:
storage: 100Mi

opBatcher:
replicas: 1
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-batcher:v1.7.2
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-batcher:v1.7.3
port:
rpc: 8548

opProposer:
replicas: 1
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-proposer:v1.7.2
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-proposer:v1.7.3
port:
rpc: 8560

blockscout:
port: 5000
loadBalancerExternal: false
gethRpc: http://node-1:8545
db:
storage: 10Gi
13 changes: 6 additions & 7 deletions mothership/holesky-devnet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@ blockscout:
db:
storage: 100Gi

sequencer:
enabled: true
nodeIndex: "1"
gethRpc: http://node-1:8545
nodeRpc: http://node-1:8547

node:
count: 2
sequencerEnabled: false
loadBalancerExternal: true
opGeth:
resources:
requests:
memory: 4Gi

opProposer:
replicas: 0

opBatcher:
replicas: 0
16 changes: 7 additions & 9 deletions srdg/holesky-devnet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ blockscout:
db:
storage: 100Gi

sequencer:
enabled: false

node:
count: 1
sequencerEnabled: true
loadBalancerExternal: true
nodeSelector:
node.kubernetes.io/instance-type: m7g.xlarge

opProposer:
replicas: 1

opBatcher:
replicas: 1
opGeth:
resources:
requests:
memory: 4Gi

0 comments on commit 7daa4cc

Please sign in to comment.