Skip to content

Commit

Permalink
Merge pull request #149 from ethpandaops/pk910/powfaucet-chart
Browse files Browse the repository at this point in the history
added powfaucet to `generate_kubernetes_config` role
  • Loading branch information
pk910 authored Oct 19, 2023
2 parents 12e69ab + c904def commit db7b1d2
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 70 deletions.
6 changes: 3 additions & 3 deletions roles/generate_kubernetes_config/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ gen_kubernetes_config_helm_charts:
repository: https://ethpandaops.github.io/ethereum-helm-charts
version: 0.1.4
faucet:
valuesTemplatePath: templates/fauceth.yaml.j2
valuesTemplatePath: templates/powfaucet.yaml.j2
dependencies:
- name: fauceth
- name: powfaucet
repository: https://ethpandaops.github.io/ethereum-helm-charts
version: 0.2.3
version: 0.0.1
faucet-2:
valuesTemplatePath: templates/eth-faucet.yaml.j2
dependencies:
Expand Down
67 changes: 0 additions & 67 deletions roles/generate_kubernetes_config/templates/fauceth.yaml.j2

This file was deleted.

40 changes: 40 additions & 0 deletions roles/generate_kubernetes_config/templates/powfaucet.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# {{ ansible_managed }}

powfaucet:
fullnameOverride: powfaucet

image:
repository: {{ default_tooling_images.powfaucet.split(':') | first }}
tag: {{ default_tooling_images.powfaucet.split(':') | last}}

resources:
requests:
cpu: 200m
memory: 500Mi
limits:
cpu: 400m
memory: 1Gi

ingress:
enabled: true

className: ingress-nginx-public

hosts:
- host: faucet.{{ network_subdomain }}
paths:
- path: /
pathType: Prefix

faucetTitle: "{{ ethereum_network_name }} PoW Faucet"
faucetPrivkey: "<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.dencun-devnets.faucet_private_key}>"
faucetRpcUrl: "{{ default_el_endpoint }}"
faucetExplorerLink: "https://explorer.{{ network_subdomain }}/tx/{txid}"

faucetCaptchaEnabled: true
faucetCaptchaSitekey: "<path:/secrets/services/services.enc.yaml#hcaptcha | jsonPath {.site_key}>"
faucetCaptchaSecret: "<path:/secrets/services/services.enc.yaml#hcaptcha | jsonPath {.secret_key}>"

faucetRecurringLimitsAmountWei: 500000000000000000000 # 500 ETH
faucetPowEnabled: true
faucetPowRewardPerHash: 1000000000000000000 # 1 ETH

0 comments on commit db7b1d2

Please sign in to comment.