Skip to content

Commit

Permalink
Move charts to its application repos
Browse files Browse the repository at this point in the history
  • Loading branch information
BulatSaif authored and mutantcornholio committed May 17, 2024
1 parent 2f36243 commit 75d624d
Show file tree
Hide file tree
Showing 8 changed files with 173 additions and 0 deletions.
9 changes: 9 additions & 0 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v2
name: substrate-faucet
description: A Helm chart for Kubernetes
type: application
version: 0.2.0
dependencies:
- name: substrate-faucet
version: "3.0.3"
repository: "https://paritytech.github.io/helm-charts/"
12 changes: 12 additions & 0 deletions helm/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- range .Values.secrets }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .name }}
type: Opaque
data:
{{- range $key, $value := .envVars }}
{{ $key }}: {{ $value | b64enc }}
{{- end }}
---
{{- end }}
29 changes: 29 additions & 0 deletions helm/values-parity-testnet-paseo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
substrate-faucet:
faucet:
secret:
SMF_CONFIG_FAUCET_ACCOUNT_MNEMONIC: ref+vault://kv/argo-cd/substrate-faucet/opstooling-parity-testnet#PASEO_FAUCET_ACCOUNT_MNEMONIC
# We use the same recaptcha token for all faucets
SMF_CONFIG_RECAPTCHA_SECRET: ref+vault://kv/argo-cd/substrate-faucet/devops-parity-testnet#FAUCET_RECAPTCHA_SECRET
SMF_CONFIG_MATRIX_ACCESS_TOKEN: ref+vault://kv/argo-cd/substrate-faucet/devops-parity-testnet#PASEO_MATRIX_ACCESS_TOKEN
config:
SMF_CONFIG_NETWORK: 'paseo'
SMF_CONFIG_RPC_ENDPOINT: "wss://sys.dotters.network/paseo"
SMF_CONFIG_MATRIX_SERVER: 'https://matrix.org'
SMF_CONFIG_MATRIX_BOT_USER_ID: '@paseo-faucet:matrix.org'
SMF_CONFIG_FAUCET_IGNORE_LIST: ''
externalAccess: true
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: traefik-external
external-dns.alpha.kubernetes.io/target: traefik-external.parity-testnet.parity.io.
cert-manager.io/cluster-issuer: letsencrypt-dns01
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
traefik.ingress.kubernetes.io/router.tls: "true"
host: paseo-faucet.parity-testnet.parity.io
tls:
- hosts:
- paseo-faucet.parity-testnet.parity.io
secretName: paseo-faucet.parity-testnet.parity.io
serviceMonitor:
enabled: true
27 changes: 27 additions & 0 deletions helm/values-parity-testnet-rococo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
substrate-faucet:
faucet:
secret:
SMF_CONFIG_FAUCET_ACCOUNT_MNEMONIC: ref+vault://kv/argo-cd/substrate-faucet/opstooling-parity-testnet#ROCOCO_FAUCET_ACCOUNT_MNEMONIC
SMF_CONFIG_RECAPTCHA_SECRET: ref+vault://kv/argo-cd/substrate-faucet/devops-parity-testnet#FAUCET_RECAPTCHA_SECRET
SMF_CONFIG_MATRIX_ACCESS_TOKEN: ref+vault://kv/argo-cd/substrate-faucet/devops-parity-testnet#ROCOCO_MATRIX_ACCESS_TOKEN
config:
SMF_CONFIG_NETWORK: 'rococo'
SMF_CONFIG_MATRIX_SERVER: 'https://matrix.org'
SMF_CONFIG_MATRIX_BOT_USER_ID: '@rococo-faucet-bot:matrix.org'
SMF_CONFIG_FAUCET_IGNORE_LIST: ''
externalAccess: true
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: traefik-external
external-dns.alpha.kubernetes.io/target: traefik-external.parity-testnet.parity.io.
cert-manager.io/cluster-issuer: letsencrypt-dns01
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
traefik.ingress.kubernetes.io/router.tls: "true"
host: rococo-faucet.parity-testnet.parity.io
tls:
- hosts:
- rococo-faucet.parity-testnet.parity.io
secretName: rococo-faucet.parity-testnet.parity.io
serviceMonitor:
enabled: true
28 changes: 28 additions & 0 deletions helm/values-parity-testnet-trappist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
substrate-faucet:
faucet:
secret:
SMF_CONFIG_FAUCET_ACCOUNT_MNEMONIC: ref+vault://kv/argo-cd/substrate-faucet/opstooling-parity-testnet#TRAPPIST_FAUCET_ACCOUNT_MNEMONIC
SMF_CONFIG_RECAPTCHA_SECRET: ref+vault://kv/argo-cd/substrate-faucet/devops-parity-testnet#FAUCET_RECAPTCHA_SECRET

SMF_CONFIG_MATRIX_ACCESS_TOKEN: ref+vault://kv/argo-cd/substrate-faucet/opstooling-parity-testnet#SMF_CONFIG_MATRIX_ACCESS_TOKEN_TRAPPIST
config:
SMF_CONFIG_NETWORK: "trappist"
SMF_CONFIG_MATRIX_SERVER: 'https://matrix.org'
SMF_CONFIG_MATRIX_BOT_USER_ID: '@trappist-faucet-bot:matrix.org'
SMF_CONFIG_FAUCET_IGNORE_LIST: ''
externalAccess: true
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: traefik-external
external-dns.alpha.kubernetes.io/target: traefik-external.parity-testnet.parity.io.
cert-manager.io/cluster-issuer: letsencrypt-dns01
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
traefik.ingress.kubernetes.io/router.tls: "true"
host: trappist-faucet.parity-testnet.parity.io
tls:
- hosts:
- trappist-faucet.parity-testnet.parity.io
secretName: trappist-faucet.parity-testnet.parity.io
serviceMonitor:
enabled: true
28 changes: 28 additions & 0 deletions helm/values-parity-testnet-westend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
substrate-faucet:
faucet:
secret:
SMF_CONFIG_FAUCET_ACCOUNT_MNEMONIC: ref+vault://kv/argo-cd/substrate-faucet/opstooling-parity-testnet#WESTEND_FAUCET_ACCOUNT_MNEMONIC
# We use the same recaptcha token for all faucets
SMF_CONFIG_RECAPTCHA_SECRET: ref+vault://kv/argo-cd/substrate-faucet/devops-parity-testnet#FAUCET_RECAPTCHA_SECRET

SMF_CONFIG_MATRIX_ACCESS_TOKEN: ref+vault://kv/argo-cd/substrate-faucet/devops-parity-testnet#WESTEND_MATRIX_ACCESS_TOKEN
config:
SMF_CONFIG_NETWORK: 'westend'
SMF_CONFIG_RPC_ENDPOINT: "wss://westend-rpc.polkadot.io/"
SMF_CONFIG_MATRIX_SERVER: 'https://matrix.org'
SMF_CONFIG_MATRIX_BOT_USER_ID: '@westend-faucet:matrix.org'
SMF_CONFIG_FAUCET_IGNORE_LIST: ''
externalAccess: true
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: traefik-external
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
# https://doc.traefik.io/traefik/providers/overview/#provider-namespace
# namespace - TLSOption name - provider (CRD)
traefik.ingress.kubernetes.io/router.tls.options: "traefik-mtls-options@kubernetescrd"
host: westend-faucet.polkadot.io
serviceMonitor:
enabled: true

25 changes: 25 additions & 0 deletions helm/values-parity-versi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
substrate-faucet:
image:
repository: paritytech/faucet
tag: latest
faucet:
secret:
SMF_CONFIG_FAUCET_ACCOUNT_MNEMONIC: ref+vault://kv/argo-cd/substrate-faucet/opstooling-parity-versi#VERSI_FAUCET_ACCOUNT_MNEMONIC
SMF_CONFIG_RECAPTCHA_SECRET: '""'
SMF_CONFIG_MATRIX_ACCESS_TOKEN: ref+vault://kv/argo-cd/substrate-faucet/devops-parity-versi#SMF_BOT_MATRIX_ACCESS_TOKEN
config:
SMF_CONFIG_NETWORK: "versi"
SMF_CONFIG_MATRIX_SERVER: 'https://m.parity.io'
SMF_CONFIG_MATRIX_BOT_USER_ID: '@versi-faucet:parity.io'
SMF_CONFIG_FAUCET_IGNORE_LIST: ''
# TODO: remove these SMF_BACKEND_* / SMF_BOT_* vars after releasing corresponding faucet code
SMF_BACKEND_RPC_ENDPOINT: "wss://versi-rpc-node-0.parity-versi.parity.io/"
SMF_BACKEND_INJECTED_TYPES: '{}'
SMF_BACKEND_NETWORK_DECIMALS: 12
SMF_BOT_MATRIX_SERVER: 'https://m.parity.io'
SMF_BOT_MATRIX_BOT_USER_ID: '@versi-faucet:parity.io'
SMF_BOT_DRIP_AMOUNT: 100
SMF_BOT_NETWORK_UNIT: VRS
SMF_BOT_FAUCET_IGNORE_LIST: ''
serviceMonitor:
enabled: true
15 changes: 15 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
substrate-faucet:
extraLabels:
team: opstooling
resources:
requests:
memory: 128Mi
cpu: 0.1
limits:
memory: 512Mi
postgresql:
primary:
podLabels:
team: opstooling
persistence:
storageClass: "ssd-csi"

0 comments on commit 75d624d

Please sign in to comment.