blockscout
by ethPandaOps
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
| Repository | Name | Version |
|---|---|---|
| https://charts.bitnami.com/bitnami | postgresql | 12.x.x |
| https://charts.bitnami.com/bitnami | redis | 17.x.x |
| https://ethpandaops.github.io/ethereum-helm-charts | smart-contract-verifier-http | 0.1.2 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity configuration for pods |
| annotations | object | {} | Annotations for the StatefulSet |
| config | object | See values.yaml | Config file https://docs.blockscout.com/for-developers/information-and-settings/env-variables |
| containerSecurityContext | object | See values.yaml | The security context for containers |
| customArgs | list | [] | Custom args for the blockscout container |
| customCommand | list | [] | Command replacement for the blockscout container |
| extraContainers | list | [] | Additional containers |
| extraEnv | list | [] | Additional env variables |
| extraPorts | list | [] | Additional ports. Useful when using extraContainers |
| extraVolumeMounts | list | [] | Additional volume mounts |
| extraVolumes | list | [] | Additional volumes |
| fullnameOverride | string | "" | Overrides the chart's computed fullname |
| image.pullPolicy | string | "IfNotPresent" | blockscout container pull policy |
| image.repository | string | "blockscout/blockscout" | blockscout container image repository |
| image.tag | string | "5.1.5" | blockscout container image tag |
| imagePullSecrets | list | [] | Image pull secrets for Docker images |
| ingress.annotations | object | {} | Annotations for Ingress |
| ingress.enabled | bool | false | Ingress resource for the HTTP API |
| ingress.hosts[0].host | string | "chart-example.local" | |
| ingress.hosts[0].paths | list | [] | |
| ingress.tls | list | [] | Ingress TLS |
| initContainers | list | [] | Additional init containers |
| livenessProbe | object | See values.yaml | Liveness probe |
| nameOverride | string | "" | Overrides the chart's name |
| nodeSelector | object | {} | Node selector for pods |
| podAnnotations | object | {} | Pod annotations |
| podDisruptionBudget | object | {} | Define the PodDisruptionBudget spec If not set then a PodDisruptionBudget will not be created |
| podLabels | object | {} | Pod labels |
| podManagementPolicy | string | "OrderedReady" | Pod management policy |
| postgresql.auth.enablePostgresUser | bool | true | |
| postgresql.auth.password | string | "postgres" | |
| postgresql.auth.postgresPassword | string | "postgres" | |
| postgresql.auth.username | string | "postgres" | |
| postgresql.enabled | bool | true | If enabled a postgres chart will be deployed as a dependency |
| postgresql.image.registry | string | "docker.io" | |
| postgresql.image.repository | string | "bitnami/postgresql" | |
| postgresql.image.tag | string | "15.3.0-debian-11-r7" | |
| postgresql.primary.extendedConfiguration | string | "max_connections = 1024\n" | |
| postgresql.primary.persistence.enabled | bool | true | |
| postgresql.primary.persistence.size | string | "8Gi" | |
| postgresql.pullPolicy | string | "IfNotPresent" | |
| priorityClassName | string | nil | Pod priority class |
| readinessProbe | object | See values.yaml | Readiness probe |
| redis.enabled | bool | false | |
| redis.replica.replicaCount | int | 1 | |
| replicas | int | 1 | Number of replicas |
| resources | object | {} | Resource requests and limits |
| secretEnv | object | {} | Additional env variables injected via a created secret |
| securityContext | object | See values.yaml | The security context for pods |
| service.type | string | "ClusterIP" | Service type |
| serviceAccount.annotations | object | {} | Annotations to add to the service account |
| serviceAccount.create | bool | true | Specifies whether a service account should be created |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| serviceMonitor.annotations | object | {} | Additional ServiceMonitor annotations |
| serviceMonitor.enabled | bool | false | If true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator |
| serviceMonitor.interval | string | "1m" | ServiceMonitor scrape interval |
| serviceMonitor.labels | object | {} | Additional ServiceMonitor labels |
| serviceMonitor.namespace | string | nil | Alternative namespace for ServiceMonitor |
| serviceMonitor.path | string | "/metrics" | Path to scrape |
| serviceMonitor.relabelings | list | [] | ServiceMonitor relabelings |
| serviceMonitor.scheme | string | "http" | ServiceMonitor scheme |
| serviceMonitor.scrapeTimeout | string | "30s" | ServiceMonitor scrape timeout |
| serviceMonitor.tlsConfig | object | {} | ServiceMonitor TLS configuration |
| smart-contract-verifier-http.enabled | bool | false | |
| terminationGracePeriodSeconds | int | 60 | How long to wait until the pod is forcefully terminated |
| tolerations | list | [] | Tolerations for pods |
| topologySpreadConstraints | list | [] | Topology Spread Constraints for pods |
| updateStrategy | object | {"type":"RollingUpdate"} | Update strategy for the Statefulset |
| updateStrategy.type | string | "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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartblockscout is pinned at v0.2.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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