diff --git a/roles/generate_kubernetes_config/defaults/main.yaml b/roles/generate_kubernetes_config/defaults/main.yaml index 7ced7888..29ee1576 100644 --- a/roles/generate_kubernetes_config/defaults/main.yaml +++ b/roles/generate_kubernetes_config/defaults/main.yaml @@ -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: diff --git a/roles/generate_kubernetes_config/templates/fauceth.yaml.j2 b/roles/generate_kubernetes_config/templates/fauceth.yaml.j2 deleted file mode 100644 index 1257114e..00000000 --- a/roles/generate_kubernetes_config/templates/fauceth.yaml.j2 +++ /dev/null @@ -1,67 +0,0 @@ -# {{ ansible_managed }} - -fauceth: - fullnameOverride: fauceth - image: - repository: {{ default_tooling_images.fauceth.split(':') | first }} - tag: {{ default_tooling_images.fauceth.split(':') | last}} - ingress: - enabled: true - - className: ingress-nginx-public - - hosts: - - host: faucet.{{ network_subdomain }} - paths: - - path: / - pathType: Prefix - - secretEnv: - APP_AMOUNT: "100080000000000000000" # 100.08 ETH - APP_IMAGEURL: "https://i.imgur.com/M0gEdpw.png" - APP_TITLE: "{{ ethereum_network_name }} Faucet" - APP_CHAINS: "{{ ethereum_genesis_chain_id }}" - APP_LOGGING: "VERBOSE" - APP_ETHKEY: "" - HCAPTCHA_SECRET: "" - HCAPTCHA_SITEKEY: "" - - initContainers: - - name: init-config - image: bash:latest - imagePullPolicy: IfNotPresent - securityContext: - runAsNonRoot: false - runAsUser: 0 - volumeMounts: - - name: config - mountPath: /config - command: - - bash - - -ace - - > - echo ' - [{ - "name": "{{ ethereum_network_name }}", - "chain": "dencunEth", - "icon": "ethereum", - "rpc": [ - "{{ default_el_endpoint }}" - ], - "faucets": [], - "nativeCurrency": { - "name": "Ether", - "symbol": "ETH", - "decimals": 18 - }, - "infoURL": "https://ethereum.org", - "shortName": "eth", - "chainId": {{ ethereum_genesis_chain_id }}, - "networkId": {{ ethereum_genesis_chain_id }}, - "slip44": 60, - "ens": { - "registry":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" - } - }] - ' > /config/chains.json; - cat /config/chains.json; diff --git a/roles/generate_kubernetes_config/templates/powfaucet.yaml.j2 b/roles/generate_kubernetes_config/templates/powfaucet.yaml.j2 new file mode 100644 index 00000000..b4242f4d --- /dev/null +++ b/roles/generate_kubernetes_config/templates/powfaucet.yaml.j2 @@ -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: "" + faucetRpcUrl: "{{ default_el_endpoint }}" + faucetExplorerLink: "https://explorer.{{ network_subdomain }}/tx/{txid}" + + faucetCaptchaEnabled: true + faucetCaptchaSitekey: "" + faucetCaptchaSecret: "" + + faucetRecurringLimitsAmountWei: 500000000000000000000 # 500 ETH + faucetPowEnabled: true + faucetPowRewardPerHash: 1000000000000000000 # 1 ETH