blockscout

by ethPandaOps

Helm chartv0.2.3Verified publisher

BlockScout provides a comprehensive, easy-to-use interface for users to view, confirm, and inspect transactions on EVM (Ethereum Virtual Machine) blockchains

About this chart

blockscout

BlockScout provides a comprehensive, easy-to-use interface for users to view, confirm, and inspect transactions on EVM (Ethereum Virtual Machine) blockchains

Homepage: https://docs.blockscout.com/

Source Code

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnamipostgresql12.x.x
https://charts.bitnami.com/bitnamiredis17.x.x
https://ethpandaops.github.io/ethereum-helm-chartssmart-contract-verifier-http0.1.2

Values

KeyTypeDefaultDescription
affinityobject{}Affinity configuration for pods
annotationsobject{}Annotations for the StatefulSet
configobjectSee values.yamlConfig file https://docs.blockscout.com/for-developers/information-and-settings/env-variables
containerSecurityContextobjectSee values.yamlThe security context for containers
customArgslist[]Custom args for the blockscout container
customCommandlist[]Command replacement for the blockscout container
extraContainerslist[]Additional containers
extraEnvlist[]Additional env variables
extraPortslist[]Additional ports. Useful when using extraContainers
extraVolumeMountslist[]Additional volume mounts
extraVolumeslist[]Additional volumes
fullnameOverridestring""Overrides the chart's computed fullname
image.pullPolicystring"IfNotPresent"blockscout container pull policy
image.repositorystring"blockscout/blockscout"blockscout container image repository
image.tagstring"5.1.5"blockscout container image tag
imagePullSecretslist[]Image pull secrets for Docker images
ingress.annotationsobject{}Annotations for Ingress
ingress.enabledboolfalseIngress resource for the HTTP API
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].pathslist[]
ingress.tlslist[]Ingress TLS
initContainerslist[]Additional init containers
livenessProbeobjectSee values.yamlLiveness probe
nameOverridestring""Overrides the chart's name
nodeSelectorobject{}Node selector for pods
podAnnotationsobject{}Pod annotations
podDisruptionBudgetobject{}Define the PodDisruptionBudget spec If not set then a PodDisruptionBudget will not be created
podLabelsobject{}Pod labels
podManagementPolicystring"OrderedReady"Pod management policy
postgresql.auth.enablePostgresUserbooltrue
postgresql.auth.passwordstring"postgres"
postgresql.auth.postgresPasswordstring"postgres"
postgresql.auth.usernamestring"postgres"
postgresql.enabledbooltrueIf enabled a postgres chart will be deployed as a dependency
postgresql.image.registrystring"docker.io"
postgresql.image.repositorystring"bitnami/postgresql"
postgresql.image.tagstring"15.3.0-debian-11-r7"
postgresql.primary.extendedConfigurationstring"max_connections = 1024\n"
postgresql.primary.persistence.enabledbooltrue
postgresql.primary.persistence.sizestring"8Gi"
postgresql.pullPolicystring"IfNotPresent"
priorityClassNamestringnilPod priority class
readinessProbeobjectSee values.yamlReadiness probe
redis.enabledboolfalse
redis.replica.replicaCountint1
replicasint1Number of replicas
resourcesobject{}Resource requests and limits
secretEnvobject{}Additional env variables injected via a created secret
securityContextobjectSee values.yamlThe security context for pods
service.typestring"ClusterIP"Service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
serviceMonitor.annotationsobject{}Additional ServiceMonitor annotations
serviceMonitor.enabledboolfalseIf true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator
serviceMonitor.intervalstring"1m"ServiceMonitor scrape interval
serviceMonitor.labelsobject{}Additional ServiceMonitor labels
serviceMonitor.namespacestringnilAlternative namespace for ServiceMonitor
serviceMonitor.pathstring"/metrics"Path to scrape
serviceMonitor.relabelingslist[]ServiceMonitor relabelings
serviceMonitor.schemestring"http"ServiceMonitor scheme
serviceMonitor.scrapeTimeoutstring"30s"ServiceMonitor scrape timeout
serviceMonitor.tlsConfigobject{}ServiceMonitor TLS configuration
smart-contract-verifier-http.enabledboolfalse
terminationGracePeriodSecondsint60How long to wait until the pod is forcefully terminated
tolerationslist[]Tolerations for pods
topologySpreadConstraintslist[]Topology Spread Constraints for pods
updateStrategyobject{"type":"RollingUpdate"}Update strategy for the Statefulset
updateStrategy.typestring"RollingUpdate"Update strategy type

Examples

Connecting to an existing PostgreSQL database

# Disable the postgres deployment
postgresql:
  enabled: false

config:
  # Some existing internal postgresdb
  DATABASE_URL: postgresql://postgres:postgres@postgresql:5432/explorer?ssl=false

Connecting to an existing Redis database

# Disable the redis deployment
redis:
  enabled: false

config:
  ACCOUNT_ENABLED: "true"
  ACCOUNT_REDIS_URL: redis://blockscout-redis:6379/0

Enabling the Smart-contract Verifier

Smart-contract verification service is a stateless http server for verifying smart contracts. You can read more about it from blockscout/blockscout-rs

verifier:
  enabled: true

config:
  ENABLE_RUST_VERIFICATION_SERVICE: "true" # If set to true, you should also deploy smart-contract-verifier-http
  RUST_VERIFICATION_SERVICE_URL: http://blockscout-smart-contract-verifier-http:8043

Deploy blockscout with OpenTenant

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