lighthouse-validator

by joaquinito2051

Helm chartv7.0.1App v7.0.1

A Lighthouse Validator Chart

About this chart

Lighthouse Validator Setup

This guide will walk you through creating a new Lighthouse Validator, loading an existing keystore to it, and creating a Kubernetes secret to store your keystore securely.

Lighthouse is an open-source Ethereum 2.0 validator client developed by Sigma Prime. It is written in Rust and designed to be highly secure, efficient, and flexible. Lighthouse is one of several Ethereum 2.0 clients that validators can use to participate in the network and earn rewards for validating blocks.

Lighthouse offers a number of features that make it an attractive choice for validators, including a highly optimized beacon node that can handle a large number of validators, support for multiple operating systems and hardware architectures, and robust support for handling slashing events and other security threats.

In addition, Lighthouse is designed to be modular and flexible, making it easy to customize and extend as needed. It also includes a user-friendly command-line interface and extensive documentation to help validators get started quickly and easily.

Overall, Lighthouse is a powerful and reliable validator client that is well-suited for both individual and institutional validators looking to participate in Ethereum 2.0 and earn rewards for securing the network.

Prerequisites

  • Lighthouse Validator installed on your local machine or a remote server.
  • Kubernetes CLI (kubectl) installed and configured to access your cluster.
  • Access to a running Kubernetes cluster.

Creating secrets with keystores and password

When setting up a Lighthouse Validator and creating a Kubernetes secret to store your keystores and passwords, it's important to name the secret files consistently. This is because the Lighthouse Validator expects a specific naming pattern in order to find and use your keystore.

The naming pattern for the Kubernetes secret should be keystore-{index}, index represents kubernetes replica, if replicasCount=2 you must create two secrets keystore-0 and keystore-1. This ensures that the Lighthouse Validator can find the correct secret when it looks for your keystore.

By following these naming conventions, you can ensure that your Lighthouse Validator is set up correctly and ready to use.

  1. Create secrets with keystores and passswords. This will create a new secrets with keystore files and a password. If you have more then 100 keystores it's better to split it in multiple replicas, for this create multiple secrets with 100 keystores in each and load it to Kubernetes as secrets. You can do this with the following command:
kubectl create secret generic keystore-0 --from-file=/path/to/my-wallet/keystores-0 --from-file=/path/to/my-wallet/keystore-0.txt
kubectl create secret generic keystore-1 --from-file=/path/to/my-wallet/keystores-1 --from-file=/path/to/my-wallet/keystore-1.txt

/path/to/my-wallet/keystores-0 expect keystores with name keystore*.json and /path/to/my-wallet/keystore-0.txt plain txt with password for these keystores/

This will create a new Kubernetes secrets named keystore-0 and keystore-1 that contains your keystore files and passwords.

Deploy Lighthouse Validator

helm repo add stakewise https://charts.stakewise.io
helm repo update
helm upgrade --install lighthouse-validator stakewise/lighthouse-validator \
  --namespace validators \
  --create-namespace \
  --set global.network="goerli" \
  --set replicaCount=2

Deploy lighthouse-validator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has lighthouse-validator 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartlighthouse-validator is pinned at v7.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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