rpc-proxy

by ethPandaOps

Helm chartv0.1.2Verified publisher

A proxy for web3 JSONRPC

About this chart

rpc-proxy

A proxy for web3 JSONRPC

Homepage: https://github.com/gochain/rpc-proxy

Values

KeyTypeDefaultDescription
affinityobject{}Affinity configuration for pods
annotationsobject{}Annotations for the Deployment
argslist["--url=http://upstream-node:8545","--wsurl=http://upstream-node:8546","--rpm=1000"]Command arguments
configstring"Allow = [\n \"clique_getSigners\",\n \"clique_getSignersAtHash\",\n \"clique_getSnapshot\",\n \"clique_getSnapshotAtHash\",\n \"clique_getVoters\",\n \"clique_getVotersAtHash\",\n \"eth_blockNumber\",\n \"eth_call\",\n \"eth_chainId\",\n \"eth_estimateGas\",\n \"eth_gasPrice\",\n \"eth_genesisAlloc\",\n \"eth_getBalance\",\n \"eth_getBlockByHash\",\n \"eth_getBlockByNumber\",\n \"eth_getBlockTransactionCountByHash\",\n \"eth_getBlockTransactionCountByNumber\",\n \"eth_getCode\",\n \"eth_getFilterChanges\",\n \"eth_getLogs\",\n \"eth_getStorageAt\",\n \"eth_getTransactionByBlockHashAndIndex\",\n \"eth_getTransactionByBlockNumberAndIndex\",\n \"eth_getTransactionByHash\",\n \"eth_getTransactionCount\",\n \"eth_getTransactionReceipt\",\n \"eth_newBlockFilter\",\n \"eth_newPendingTransactionFilter\",\n \"eth_sendRawTransaction\",\n \"eth_subscribe\",\n \"eth_totalSupply\",\n \"eth_uninstallFilter\",\n \"eth_unsubscribe\",\n \"net_listening\",\n \"net_version\",\n \"rpc_modules\",\n \"web3_clientVersion\",\n]\n"
containerSecurityContextobjectSee values.yamlThe security context for containers
customArgslist[]Custom args for the rpc-proxy container
customCommandlist[]Command replacement for the rpc-proxy 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"rpc-proxy container pull policy
image.repositorystring"ghcr.io/gochain/rpc-proxy/rpc-proxy"rpc-proxy container image repository
image.tagstring"latest"rpc-proxy 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
priorityClassNamestringnilPod priority class
readinessProbeobjectSee values.yamlReadiness probe
replicasint1Number of replicas
resourcesobject{}Resource requests and limits
secretEnvobject{}Secret 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
terminationGracePeriodSecondsint30How long to wait until the pod is forcefully terminated
tolerationslist[]Tolerations for pods
topologySpreadConstraintslist[]Topology Spread Constraints for pods

Examples

Defining the upstream node

args:
  - --url=http://upstream-node:8545
  - --wsurl=http://upstream-node:8546

Deploy rpc-proxy with OpenTenant

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