airbroke

by iCoreTech, Inc.

Helm chartv2.4.10App 1.4.13MITVerified publisher

Airbroke Helm chart for Kubernetes

About this chart

Airbroke Helm Chart

This Helm chart deploys Airbroke, a modern, React-based open source error catcher web application.

Prerequisites

  • Kubernetes 1.20+
  • Helm 3.10+
  • Postgres 15+ Database ready to use

Installing the Chart

To install the chart with the release name my-airbroke:

# OCI
helm install my-airbroke oci://ghcr.io/icoretech/charts/airbroke
helm repo add icoretech https://icoretech.github.io/helm
helm install my-airbroke icoretech/airbroke

Please remember to set at least the database.url and database.migrations_url values. Continue reading for further details.

Gateway API HTTPRoute Example

web:
  httpRoute:
    enabled: true
    parentRefs:
      - name: shared-gateway
        namespace: infra
        sectionName: https
    hostnames:
      - airbroke.example.com

Breaking changes in 2.0.0

  • web.image was removed; use web.imageRepository and optional web.imageTag
  • Airbroke auth examples now use Better Auth env names: BETTER_AUTH_SECRET and BETTER_AUTH_URL
  • Releases still passing NEXTAUTH_SECRET or NEXTAUTH_URL via web.extraEnvs now fail template rendering on purpose

Database

The database.url and database.migrations_url values must be set to the connection string of your PostgreSQL database. When database.enable_migration is enabled, the migrations init container uses the exact same Airbroke image tag as the web container and executes its embedded Prisma CLI at /app/migrations-runtime/node_modules/.bin/prisma; it never downloads Prisma during deployment. Both containers run as the image's non-root UID/GID 1001 by default.

Configuration

The following table lists the configurable parameters of the Airbroke chart and their default values.

Values

KeyTypeDefaultDescription
database.enable_migrationbooltrueRun migrations before starting the web container using the image's embedded Prisma CLI.
database.migrations_urlstring""
database.urlstring""
fullnameOverridestring""
nameOverridestring""
pgbouncer.config.adminPasswordstring"airbroke"
pgbouncer.config.databases.airbroke_production.hoststring"postgres-postgresql.postgres.svc.cluster.local"
pgbouncer.config.databases.airbroke_production.portint5432
pgbouncer.config.pgbouncer.application_name_add_hostint1
pgbouncer.config.pgbouncer.auth_typestring"scram-sha-256"
pgbouncer.config.pgbouncer.default_pool_sizeint100
pgbouncer.config.pgbouncer.ignore_startup_parametersstring"extra_float_digits"
pgbouncer.config.pgbouncer.log_connectionsint1
pgbouncer.config.pgbouncer.log_disconnectionsint1
pgbouncer.config.pgbouncer.log_pooler_errorsint1
pgbouncer.config.pgbouncer.max_client_connint8192
pgbouncer.config.pgbouncer.max_db_connectionsint200
pgbouncer.config.pgbouncer.pool_modestring"transaction"
pgbouncer.config.userlist.airbroke_productionstring"SCRAM-SHA-256$xxxxxx="
pgbouncer.enabledboolfalse
web.affinityobject{}
web.cachePersistentVolume.accessModes[0]string"ReadWriteOnce"
web.cachePersistentVolume.annotationsobject{}
web.cachePersistentVolume.enabledboolfalse
web.cachePersistentVolume.existingClaimstring""
web.cachePersistentVolume.mountPathstring"/app/.next/cache"
web.cachePersistentVolume.sizestring"1Gi"
web.cachePersistentVolume.storageClassstring""
web.cachePersistentVolume.volumeModestring""
web.extraEnvFromlist[]
web.extraEnvslist[]
web.hpa.cpustringnil
web.hpa.enabledboolfalse
web.hpa.maxReplicasint10
web.hpa.memorystringnil
web.hpa.requestsstringnil
web.httpRoute.annotationsobject{}
web.httpRoute.enabledboolfalse
web.httpRoute.hostnameslist[]
web.httpRoute.matches[0].path.typestring"PathPrefix"
web.httpRoute.matches[0].path.valuestring"/"
web.httpRoute.parentRefslist[]
web.imagePullPolicystring"IfNotPresent"
web.imagePullSecretsstring""
web.imageRepositorystring"ghcr.io/icoretech/airbroke"
web.imageTagstring""
web.ingress.annotationsobject{}
web.ingress.enabledboolfalse
web.ingress.hostslist[]
web.ingress.ingressClassNamestring"nginx"
web.ingress.tlslist[]
web.livenessProbe.enabledbooltrue
web.livenessProbe.failureThresholdint2
web.livenessProbe.httpGet.endpointstring"/api/hc?source=livenessProbe"
web.livenessProbe.httpGet.httpHeaderslist[]
web.livenessProbe.initialDelaySecondsint0
web.livenessProbe.periodSecondsint10
web.livenessProbe.successThresholdint1
web.livenessProbe.timeoutSecondsint5
web.nodeSelectorobject{}
web.podAnnotationsobject{}
web.podLabelsobject{}
web.podSecurityContextobject{"fsGroup":1001}Pod security context. Defaults keep shared volumes writable for the non-root Airbroke image user.
web.readinessProbe.enabledbooltrue
web.readinessProbe.failureThresholdint2
web.readinessProbe.httpGet.endpointstring"/api/hc?source=readinessProbe"
web.readinessProbe.httpGet.httpHeaderslist[]
web.readinessProbe.initialDelaySecondsint0
web.readinessProbe.periodSecondsint10
web.readinessProbe.successThresholdint1
web.readinessProbe.timeoutSecondsint5
web.replicaCountint1
web.resourcesobject{}
web.runtimeClassNamestringnil
web.securityContextobject{"runAsGroup":1001,"runAsNonRoot":true,"runAsUser":1001}Container security context. Matches the app user baked into the Airbroke image and applies to web and migration containers.
web.service.annotationsobject{}
web.service.enabledbooltrue
web.service.portint3000
web.service.typestring"ClusterIP"
web.terminationGracePeriodSecondsint0
web.tolerationslist[]
web.updateStrategy.rollingUpdate.maxSurgeint1
web.updateStrategy.rollingUpdate.maxUnavailableint0
web.updateStrategy.typestring"RollingUpdate"

You should specify additional AIRBROKE_ environment variables using the extraEnvs parameter. If you want to inject sensitive values from existing Kubernetes Secrets/ConfigMaps (recommended), use extraEnvFrom. For MCP API access by LLM/agent clients, set AIRBROKE_MCP_API_KEY (preferably via extraEnvFrom Secret reference).

Pgbouncer

Pgbouncer, a lightweight connection pooler for PostgreSQL, can be enabled using the pgbouncer.enabled parameter. You can customize the Pgbouncer configuration under pgbouncer.config.

Example using Flux

apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: icoretech
spec:
  interval: 30m
  type: oci
  url: oci://ghcr.io/icoretech/charts
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: airbroke
  namespace: airbroke
spec:
  releaseName: airbroke
  chart:
    spec:
      chart: airbroke
      version: ">= 2.0.0"
      sourceRef:
        kind: HelmRepository
        name: icoretech
        namespace: flux-system
  interval: 10m0s
  install:
    remediation:
      retries: 4
  upgrade:
    remediation:
      retries: 4
  values:
    database:
      url: 'postgresql://xxxx:[email protected]:5432/airbroke_production?connection_limit=100&pool_timeout=10&application_name=airbroke&schema=public'
      migrations_url: 'postgresql://xxxx:[email protected]:5432/airbroke_production?schema=public'
    web:
      imageRepository: ghcr.io/icoretech/airbroke
      imageTag: "1.2.0" # {"$imagepolicy": "flux-system:airbroke:tag"}
      replicaCount: 2
      cachePersistentVolume:
        enabled: true
        storageClass: efs
        accessModes:
          - ReadWriteMany
        size: 1Gi
      hpa:
        enabled: true
        maxReplicas: 5
        cpu: 100
      resources:
        requests:
          cpu: 1500m
          memory: 500M
        limits:
          cpu: 1500m
          memory: 500M
      extraEnvs:
        - name: AIRBROKE_GITHUB_ID
          value: "xxxx"
        - name: AIRBROKE_GITHUB_SECRET
          value: "xxxxx"
        - name: AIRBROKE_GITHUB_ORGS
          value: "xxxxx"
        - name: BETTER_AUTH_SECRET
          value: "xxxxxxx"
        - name: BETTER_AUTH_URL
          value: "https://xxxxxx"
        - name: AIRBROKE_OPENAI_API_KEY
          value: "sk-xxxxxxx"
        - name: AIRBROKE_MCP_API_KEY
          value: "replace-with-a-strong-random-token"
      extraEnvFrom:
        - secretRef:
            name: airbroke-web-external-secrets
      ingress:
        enabled: true
        ingressClassName: nginx
        annotations:
          cert-manager.io/cluster-issuer: letsencrypt
          external-dns.alpha.kubernetes.io/cloudflare-proxied: 'false'
          nginx.ingress.kubernetes.io/configuration-snippet: |
            real_ip_header proxy_protocol;
        hosts:
          - host: airbroke.mydomain.com
            paths:
              - '/'
        tls:
          - hosts:
              - airbroke.mydomain.com

Please be aware that the previous example serves as a basic template, and you'll likely need to adjust it to suit your specific requirements. For a comprehensive list of configurable options, please consult the values.yaml file. It's important to note that the image value included above is just a placeholder, and you should substitute it with your desired image tag.

For automated image updates, consider utilizing Flux Image Automation. Our images are deliberately tagged to facilitate Flux's automatic deployment updates whenever a new image becomes available.

Image Policies

# example production semver image policy
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImagePolicy
metadata:
  name: airbroke
  namespace: flux-system
spec:
  imageRepositoryRef:
    name: airbroke
  policy:
    semver:
      range: '>=1.2.0 <2.0.0'
# example development image policy
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImagePolicy
metadata:
  name: airbroke
  namespace: flux-system
spec:
  imageRepositoryRef:
    name: airbroke
  filterTags:
    pattern: '^main-[a-fA-F0-9]+-(?P<ts>.*)'
    extract: '$ts'
  policy:
    numerical:
      order: asc

Deploy airbroke with OpenTenant

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