fider

by benjlevesque

Helm chartv0.1.0App 0.19.1Verified publisher

A Helm chart for Fider (non-official)

About this chart

fider

A Helm chart for Fider (non-official)

Homepage: https://getfider.com/

Source Code

Usage

tl;dr

helm repo add benjlevesque  https://blevesque-helm-charts.s3.fr-par.scw.cloud
helm install fider -f my-values.yaml benjlevesque/fider

Tutorial

The following steps use a fake SMTP server and a basic PostgresSQL configuration. This is NOT to be used in production.

  • Install mailhog to simulate a SMTP server
helm repo add codecentric https://codecentric.github.io/helm-charts
helm install mailhog codecentric/mailhog
  • Install a PostgresSQL instance
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install postgres \
  --set postgresqlPassword=secretpassword,postgresqlDatabase=postgres \
    bitnami/postgresql
  • Create a values.test.yaml file with this content
fider:
  domain: "localhost"
  noreply: "[email protected]"
  # postgres://postgres:secretpassword@postgres-postgresql:5432/postgres?sslmode=disable
  databaseUrl: cG9zdGdyZXM6Ly9wb3N0Z3JlczpzZWNyZXRwYXNzd29yZEBwb3N0Z3Jlcy1wb3N0Z3Jlc3FsOjU0MzIvcG9zdGdyZXM/c3NsbW9kZT1kaXNhYmxl
  # abcd
  jwtSecret: YWJjZAo=
  smtp:
    host: mailhog
    port: 1025
  • Create the fider release
helm repo add benjlevesque  https://blevesque-helm-charts.s3.fr-par.scw.cloud
helm install fider -f values.test.yaml benjlevesque/fider
  • open two terminals and run these commands, one in each
kubectl port-forward svc/mailhog 8025
# in another terminal
kubectl port-forward svc/fider 8000:80
  • You can now access http://localhost:8000 and play with fider. You will receive emails in Mailhog, at http://localhost:8025

Values

KeyTypeDefaultDescription
affinityobject{}
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
extraEnv.LOG_LEVELstring"DEBUG"
fider.databaseUrlstring""The URL to your PostgresSQL instance. Must be either a base64 encoded value or an encrypted sealed secret (required)
fider.domainstring""The domain where your site will be available (required)
fider.jwtSecretstring""This is a secret value. Use a base64 value, or a Sealed Secret encrypted value
fider.noreplystring""The email address used to send emails (required)
fider.smtp.hoststring""
fider.smtp.portstringnil
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"getfider/fider"
image.tagstring""
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.enabledboolfalse
ingress.hostslist[{"host":"fider.domain.com","paths":[]}]kubernetes.io/tls-acme: "true"
ingress.tlslist[]
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podSecurityContextobject{}
replicaCountint1These are secret values. Use base64 values, or Sealed Secret encrypted values extraEnvSecrets: OAUTH_FACEBOOK_SECRET:
resourcesobject{}
sealedSecretsboolfalseenables Sealed Secrets for all secret values. Recommended for gitops flows.
securityContextobject{}
service.portint80
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""If not set and create is true, a name is generated using the fullname template
tolerationslist[]

Deploy fider with OpenTenant

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