solana

by Dysnix

Helm chartv0.1.32App v1.18.15Verified publisher

Solana blockchain node Helm chart

About this chart

Solana helm chart

A Helm chart to deploy Solana node inside Kubernetes cluster.

Parameters

Global parameters

NameDescriptionValue
replicaCountNumber of pods to deploy in the Stateful Set1
image.repositorySolana image repositoryghcr.io/dysnix/docker-solana
image.tagSolana image tag""
image.pullPolicySolana image pull policyIfNotPresent
imagePullSecretsSolana image pull secrets[]
nameOverrideString to partially override release name""
fullnameOverrideString to fully override release name""
serviceAccount.createSpecifies whether a ServiceAccount should be createdtrue
serviceAccount.nameThe name of the ServiceAccount to use""
serviceAccount.automountWhether to auto mount the service account tokentrue
serviceAccount.annotationsAdditional custom annotations for the ServiceAccount{}
podLabelsExtra labels for pods{}
podAnnotationsAnnotations for pods{}
extraContainerPortsAdditional ports to expose on Solana container[]
podSecurityContextConfigure securityContext for entire pod{}
securityContextConfigure securityContext for Solana container{}
resourcesSet container requests and limits for CPU or memory{}
livenessProbeSolana container livenessProbe{}
startupProbeSolana container startupProbe{}
readinessProbeSolana container readinessProbe{}
affinityAffinity for pod assignment{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
volumesPod extra volumes[]
volumeMountsContainer extra volumeMounts[]

Services configuration

NameDescriptionValue
services.rpc.enabledEnable Solana RPC servicetrue
services.rpc.typeSolana RPC service typeClusterIP
services.rpc.portSolana RPC service port (+1 for websocket)8899
services.rpc.extraPortsSolana RPC service extra ports to expose[]
services.rpc.publishNotReadyAddressesRoute trafic even when pod is not readyfalse
services.metrics.enabledEnable Solana metrics servicefalse
services.metrics.typeSolana metrics service typeClusterIP
services.metrics.portSolana metrics service port9122
services.metrics.extraPortsSolana metrics service extra ports to expose[]
services.metrics.publishNotReadyAddressesRoute trafic even when pod is not readytrue

Ingress configuration

NameDescriptionValue
ingress.httpIngress configuration for Solana RPC HTTP endpoint{}
ingress.wsIngress configuration for Solana RPC WebSocket endpoint{}

Metrics configuration

NameDescriptionValue
metrics.enabledEnable Solana node metrics collectionfalse
metrics.targetWhere to push Solana metricsexporter
metrics.exporterinfluxdb-exporter configuration{}
metrics.serviceMonitor.enabledEnable Prometheus ServiceMonitorfalse
metrics.influxdb.existingSecret.nameName of secret containing InfluxDB credentialssolana-metrics-config
metrics.influxdb.existingSecret.keyKey name inside the secretconfig

Solana node configuration

NameDescriptionValue
solanaArgssolana-validator arguments{}
gracefulShutdown.timeoutSeconds to wait for graceful shutdown120
gracefulShutdown.optionssolana-validator exit arguments{}
gracefulShutdown.options.forceDo not wait for restart-window, useful for non-validatorsfalse
gracefulShutdown.options.skip-health-checkSkip health check before exitfalse
gracefulShutdown.options.skip-health-checkSkip check for a new snapshot before exitfalse
rustLogLogging configurationsolana=info,solana_metrics=warn
plugins.enabledEnable download of Geyser pluginsfalse
plugins.containerPortsExtra container ports for added plugins[]
plugins.servicePortsExtra service ports for added plugins[]
plugins.yellowstoneGRPC.enabledEnable download of Yellowstone gRPCfalse
plugins.yellowstoneGRPC.versionYellowstone gRPC versionv1.15.0+solana.1.17.33
plugins.yellowstoneGRPC.downloadURLFrom where the plugin needs to be downloadedhttps://github.com/rpcpool/yellowstone-grpc/releases/download/
plugins.yellowstoneGRPC.listenIPYellowstone gRPC listen IP address, without port$(MY_POD_IP)
plugins.yellowstoneGRPC.configYellowstone gRPC config.json filelook in values.yaml
plugins.jitoGRPC.enabledEnable download of Jito gRPCfalse
plugins.jitoGRPC.versionJito gRPC versionv1.17.20
plugins.jitoGRPC.downloadURLFrom where the plugin needs to be downloadedhttps://github.com/jito-foundation/geyser-grpc-plugin/releases/download/v1.17.20/libgeyser_grpc_plugin_server.so
plugins.jitoGRPC.listenIPJito gRPC listen IP address, without port$(MY_POD_IP)
plugins.jitoGRPC.configJito gRPC config.json filelook in values.yaml
identity.validatorKeypairValidator keypair string (required)""
identity.voteKeypairVote keypair string (required only for validator)""
identity.existingSecretUse existing secret with keypairs instead of specifying them above""
identity.mountPathKeypair files mount path/secrets

Solana ledger db persistence config

NameDescriptionValue
persistence.ledger.typeLedger persistence typepvc
persistence.ledger.pvc.annotationsPVC volume annotations{}
persistence.ledger.pvc.accessModePVC volume access modeReadWriteOnce
persistence.ledger.pvc.storageClassPVC volume storage class name""
persistence.ledger.pvc.sizePVC volume size2Ti
persistence.ledger.existingClaim.nameExisting PVC configurationsolana-ledger-volume
persistence.ledger.hostPath.typehostPath volume typeDirectory
persistence.ledger.hostPath.pathhostPath directory on host node/blockchain/solana-ledger

Solana accounts db persistence config

NameDescriptionValue
persistence.accounts.typeAccounts persistence typepvc
persistence.accounts.pvc.annotationsPVC volume annotations{}
persistence.accounts.pvc.accessModePVC volume access modeReadWriteOnce
persistence.accounts.pvc.storageClassPVC volume storage c

Deploy solana with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has solana 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 chartsolana is pinned at v0.1.32 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