op-node
by Test in Prod
A consensus engine for OP Stack. You can build a new OP Stack chain or connect to an existing one.
About this chart
OP Node
OP Node is a consensus engine for OP Stack. This is a OP Node Helm Chart packaged by Test in Prod.
Introduction
You can build a new OP Stack chain or connect to an existing one. You need an OP execution engine that works along with OP Node.
Please refer to the example values for Optimism Goerli here.
LFG
helm install op-node-release op-charts/op-node -f values.yaml
Requirements
- K8s 1.8+
- Helm 3.2.0+
- OP Execution Engine with EngineAPI access.
- OP Vibe 🎶
Parameters
This chart connects to Optimism Goerli Testnet in default. Please refer to the op-node's flag code for the detail!
Required Parameters
| Name | Description | Value |
|---|---|---|
l2.rpcAddr | An OP execution engine address that this OP Node can change the state. | "" |
l2.jwtSecret | jwtSecret key that has an admin permission to the execution engine client. | "" |
l1.rpcAddr | RPC address of your L2's L1. | "DSRV AllthatNode Goerli Network" |
OP Node Parameters
| Name | Description | Value |
|---|---|---|
sequencer.enabled | If this op-node will work as a sequencer or not. | false |
sequencer.p2pKey | A key that op-node will sign as a sequencer upon p2p sync | "" |
p2p.enabled | p2p switch | true |
p2p.priv.file | A private file to sign message for p2p message | "" |
snapshotLogPath | Path to the snapshot log file | /logs |
rollupConfig.file | A JSON that has rollup's rollup params. This should not be used with network param | "" |
network | Name of the network. There are some hardcoded network configs in the codebase. Please refer to the op-node repo. | goerli |
metrics.enabled | Prometheus switch for the metrics | true |
args | Other application arguments for op-node | [] |
Deployment Parameters
| Name | Description | Value |
|---|---|---|
replicaCount | Number of op-node replicas to deploy | 1 |
livenessProbe | livenessProbe switch for op-node | true |
readinessProbe | readinessProbe switch for op-node | true |
rpc.port.containerPort | Container port for RPC connections | 8545 |
rpc.port.hostPort | Host port for RPC connections | 7545 |
rpc.addr | Listening address for RPC | 0.0.0.0 |
listen.ip | p2p listening address | 0.0.0.0 |
listen.tcp.containerPort | p2p container port for TCP connections | 9003 |
listen.tcp.hostPort | p2p host port for TCP connections | 9003 |
listen.udp.containerPort | p2p container port for UDP connections | 9003 |
listen.udp.hostPort | p2p host port for UDP connections | 9003 |
metrics.port.containerPort | Container port for metrics connections | 7300 |
metrics.port.hostPort | Host port for metrics connections | 7300 |
metrics.addr | Listening address for metrics | 0.0.0.0 |
pprof.port.containerPort | Container port for pprof connections | 6060 |
pprof.port.hostPort | Host port for pprof connections | 6060 |
pprof.addr | Listening address for pprof | 0.0.0.0 |
Common Parameters
| Name | Description | Value |
|---|---|---|
fullnameOverride | String to fully override op-node.fullname template | "" |
nameOverride | String to fully override op-node.name | "" |
service.type | Service type | "ClusterIP" |
resources | The resources limits for the op-node | {} |
nodeSelector | Node labels for pod assignment. Evaluated as a template. | {} |
tolerations | Tolerations for pod assignment. Evaluated as a template. | [] |
affinity | Affinity for pod assignment | {} |
Kudos
- This chart uses DSRV's AllThatNode Goerli public RPC. Shout out to DSRV, the most reliable blockchain infra provider :)
- Kudos to Bitnami for providing decent template references.
- Of course, thanks OP Labs and Optimism Foundation for building amazing collective and technology.
Deploy op-node with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has op-node on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartop-node is pinned at v0.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply