File tree Expand file tree Collapse file tree
spartan/terraform/deploy-ethereum-nodes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,13 +86,40 @@ locals {
8686 }
8787 extraArgs = [
8888 " --chain=${ var . chain } " ,
89+ " --storage.v2=true" ,
8990 ]
9091
9192 persistence = {
9293 enabled = true
9394 size = var.reth_storage
9495 storageClassName = " premium-rwo"
9596 }
97+
98+ initContainers = [
99+ {
100+ name = " migrate-storage-v2"
101+ image = var.reth_image
102+ imagePullPolicy = " Always"
103+ command = [
104+ " sh" ,
105+ " -ac" ,
106+ <<- EOT
107+ if [ ! -f /data/db/db/metadata.json ]; then
108+ echo "No existing Reth database found, skipping storage v2 migration."
109+ exit 0
110+ fi
111+
112+ reth db --datadir=/data --chain=${ var . chain } migrate-v2
113+ EOT
114+ ]
115+ volumeMounts = [
116+ {
117+ name = " storage"
118+ mountPath = " /data"
119+ }
120+ ]
121+ }
122+ ]
96123 })
97124 ]
98125 }
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ variable "lighthouse_p2p_port" {
4848variable "reth_image" {
4949 description = " Reth Docker image"
5050 type = string
51- default = " ghcr.io/paradigmxyz/reth:v2.0 .0"
51+ default = " ghcr.io/paradigmxyz/reth:v2.2 .0"
5252}
5353
5454variable "reth_chart_version" {
@@ -90,13 +90,13 @@ variable "reth_memory_limit" {
9090variable "lighthouse_image" {
9191 description = " Lighthouse Docker image"
9292 type = string
93- default = " sigp/lighthouse:v8.0.1 "
93+ default = " sigp/lighthouse:v8.1.3 "
9494}
9595
9696variable "lighthouse_chart_version" {
9797 description = " Lighthouse Helm chart version"
9898 type = string
99- default = " 1.1.7 "
99+ default = " 1.1.8 "
100100}
101101
102102variable "lighthouse_storage" {
You can’t perform that action at this time.
0 commit comments