dshackle

by ethPandaOps

Helm chartv0.1.9Verified publisher

Emerald Dshackle is a Fault Tolerant Load Balancer for Blockchain API. Support for standard Bitcoin and Ethereum JSON RPC API over HTTP and WebSocket.

About this chart

dshackle

Emerald Dshackle is a Fault Tolerant Load Balancer for Blockchain API. Support for standard Bitcoin and Ethereum JSON RPC API over HTTP and WebSocket.

Homepage: https://github.com/emeraldpay/dshackle

Source Code

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnamiredis16.x.x

Values

KeyTypeDefaultDescription
affinityobject{}Affinity configuration for pods
annotationsobject{}Annotations for the StatefulSet
configstringSee values.yamlConfig file
containerSecurityContextobjectSee values.yamlThe security context for containers
customArgslist[]Custom args for the dshackle container
customCommandlist[]Command replacement for the dshackle 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
gRPCPortintSee values.yamlgRPC Port
healthPortintSee values.yamlHealth Port
httpPortintSee values.yamlHTTP Port
image.pullPolicystring"IfNotPresent"dshackle container pull policy
image.repositorystring"emeraldpay/dshackle"dshackle container image repository
image.tagstring"0.14.0"dshackle 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
metricsPortintSee values.yamlMetrics Port
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
priorityClassNamestringnilPod priority class
readinessProbeobjectSee values.yamlReadiness probe
redis.auth.passwordstring"yourRedisSecret"
redis.enabledbooltrueIf enabled a redis chart will be deployed as a dependency
redis.image.pullPolicystring"IfNotPresent"
redis.image.registrystring"docker.io"
redis.image.repositorystring"bitnami/redis"
redis.image.tagstring"6.2.6-debian-10-r21"
redis.master.persistence.enabledbooltrue
redis.master.persistence.sizestring"8Gi"
redis.replica.persistence.enabledboolfalse
redis.replica.persistence.sizestring"8Gi"
redis.replica.replicaCountint0
replicasint1Number of replicas
resourcesobject{}Resource requests and limits
secretEnvobject{"INFURA_USER":"your-infura-secret","REDIS_PASSWORD":"yourRedisSecret"}Additional env variables injected via a created secret
securityContextobjectSee values.yamlThe security context for pods
service.annotationsobject{}Annotations for the Service
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
terminationGracePeriodSecondsint30How 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 external Redis instance

# Disable the redis deployment
redis:
  enabled: false
config: |
  ...
  cache:
    redis:
      enabled: true
      host: your-external-redis-host.somewhere
      port: 6379
      db: 0
      password: ${REDIS_PASSWORD}

secretEnv:
  REDIS_PASSWORD: yourRedisSecret

Deploy dshackle with OpenTenant

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