lodestar-validator

by joaquinito2051

Helm chartv1.2.0App v1.27.0

A Lodestar Validator Chart

About this chart

Lodestar Validator Setup

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

Prerequisites

  • Lodestar 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 Lodestar 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 Lodestar 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 Lodestar Validator can find the correct secret when it looks for your keystore.

By following these naming conventions, you can ensure that your Lodestar 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 Lodestar Validator

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

Deploy lodestar-validator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has lodestar-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 chartlodestar-validator is pinned at v1.2.0 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