testnet-faucet

by ethPandaOps

Helm chartv0.1.3Verified publisher

Ethereum faucet used for testnets

About this chart

testnet-faucet

Ethereum faucet used for testnets

Homepage: https://github.com/parithosh/testnet-faucet

Values

KeyTypeDefaultDescription
affinityobject{}Affinity configuration for pods
annotationsobject{}Annotations for the Deployment
config.serverobjectSee values.yamlServer configuration
config.webuiobjectSee values.yamlWeb UI configuration
containerSecurityContextobjectSee values.yamlThe security context for containers
customArgslist[]Custom args for the testnet-faucet container
customCommandlist[]Command replacement for the testnet-faucet 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"testnet-faucet container pull policy
image.repositorystring"parithoshj/testnet-faucet"testnet-faucet container image repository
image.tagstring"9859e0d"testnet-faucet 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
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

Configuring the faucet

To create the recaptcha keys you can go to http://www.google.com/recaptcha/admin

config:
  # -- Web UI configuration
  webui:
    title: "My Testnet faucet"
    buttonText: "Request 5 ETH"
    logoUrl: "https://launchpad.ethereum.org/static/media/eth2-leslie-rhino.243747b9.png"
    footer: "My custom footer"
    recaptchaKey: "<Insert Recaptcha Site Key >"
  # -- Server configuration
  server:
    environment: live
    debug: true
    Captcha:
      secret: "<Insert Recaptcha Secret Key>"
    Ethereum:
      chainId: 56665
      milliEtherToTransfer: 5000
      gasLimit: "30000"
      live:
        rpc: "http://geth-server:8545"
        account: "<Insert faucet address : 0x....>"
        privateKey: "<Insert private key in hex format>"

Deploy testnet-faucet with OpenTenant

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