Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions spartan/terraform/deploy-ethereum-nodes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,41 @@ locals {
}
extraArgs = [
"--chain=${var.chain}",
# "--storage.v2=true",
]

persistence = {
enabled = true
size = var.reth_storage
storageClassName = "premium-rwo"
}

# disabled because sepolia db has already been migrated, mainnet has not been migrated yet
#initContainers = [
# {
# name = "migrate-storage-v2"
# image = var.reth_image
# imagePullPolicy = "Always"
# command = [
# "sh",
# "-ac",
# <<-EOT
# if [ ! -f /data/db/database.version ]; then
# echo "No existing Reth database found, skipping storage v2 migration."
# exit 0
# fi

# reth db --datadir=/data --chain=${var.chain} migrate-v2
# EOT
# ]
# volumeMounts = [
# {
# name = "storage"
# mountPath = "/data"
# }
# ]
# }
#]
})
]
}
Expand Down
6 changes: 3 additions & 3 deletions spartan/terraform/deploy-ethereum-nodes/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ variable "lighthouse_p2p_port" {
variable "reth_image" {
description = "Reth Docker image"
type = string
default = "ghcr.io/paradigmxyz/reth:v2.0.0"
default = "ghcr.io/paradigmxyz/reth:v2.2.0"
}

variable "reth_chart_version" {
Expand Down Expand Up @@ -90,13 +90,13 @@ variable "reth_memory_limit" {
variable "lighthouse_image" {
description = "Lighthouse Docker image"
type = string
default = "sigp/lighthouse:v8.0.1"
default = "sigp/lighthouse:v8.1.3"
}

variable "lighthouse_chart_version" {
description = "Lighthouse Helm chart version"
type = string
default = "1.1.7"
default = "1.1.8"
}

variable "lighthouse_storage" {
Expand Down
Loading