snark-worker

by O(1) Labs

Helm chartv1.0.9App 1.16.0Verified publisher

A Helm chart for Mina Protocol's SNARK worker nodes

About this chart

Introduction

This chart bootstraps a Mina protocol Testnet snark-coordinator and associated workers.

Add Mina Helm chart repository:

helm repo add mina https://coda-charts.storage.googleapis.com
helm repo update

Configuration

The following table lists the configurable parameters of the snark-worker chart and its default values.

Required Settings

ParameterDescription
testnetNameMina protocol testnet name to deploy to
coordinator.publicKeyMina account/wallet public key to use for registering for SNARK work payments
coda.seedPeerspeers to bootstrap the archive node's Mina daemon

Optional Settings

ParameterDescriptionDefault
coordinator.activeWhether to activate testnet client as a SNARK coordinatortrue
coordinator.fullnamek8s pod name of snark coordinator to deploysee [default] values.yaml
coordinator.snarkFeeFee to charge for processing SNARK work0.025
coordinator.workSelectionAlgorithmSNARK work selection and assignment algorithmseq
coordinator.hostPortMina client external port10001
coordinator.rpcPortMina client peer communication port8301
worker.activeWhether to activate testnet client with SNARK workerstrue
worker.fullnamek8s pod name of snark worker to deploysee [default] values.yaml
worker.numReplicasNumber of SNARK workers to provision and manage by coordinator1
worker.remoteCoordinatorHostHost address to access a remote coordinatorsee [default] values.yaml
worker.remoteCoordinatorPortHost port to access a remote coordinator8301
coda.imagecontainer image to use for operating the archive node's Mina daemoncodaprotocol/coda-daemon:0.0.12-beta-develop-589b507
coda.genesisMina genesis constantssee [defaults] values.yaml
coda.runtimeConfigMina daemon configuration to use at runtimeundefined

snark-worker launch examples

helm install snark-worker \
    --set testnetName=pickles \
    --set coordinator.publicKey="<public-key>" \
    --set coda.seedPeers=['/dns4/coda-testnet-seed-one.pickles.o1test.net/tcp/10002/p2p/12D3KooWP7fTKbyiUcYJGajQDpCFo2rDexgTHFJTxCH8jvcL1eAH]

Deploy snark-worker with OpenTenant

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