Skip to content

Install on Kubernetes

The FireHawk Helm chart is published at oci://ghcr.io/eos916101/charts/firehawk. Its version matches the FireHawk release (the current release is 1.0.0), and the images it uses default to the same version.

Component Kind Notes
api Deployment + Service <release>-api Runs the database migrations at start (serialized, so several replicas are safe). Probes: /api/health (startup, liveness), /api/ready (readiness, checks the database)
worker Deployment, 2 replicas by default Same image as the API: drift checks, rollouts, alias refreshes, safe-deploy checks, notifications. Replicas share the job queue in PostgreSQL; running jobs go back to the queue on SIGTERM
frontend Deployment + Service <release> nginx serving the UI and proxying /api/ to the api Service
postgresql StatefulSet + PVC (optional, enabled by default) postgres:16-alpine, one replica
Ingress optional Points at the frontend only (it proxies /api/)
ConfigMap, Secret <release> Non-secret settings; SECRET_KEY, the bootstrap admin password and the database credentials

The api and worker pods are stateless and configured by environment only, so any number of replicas can run and their start order does not matter.

Requires Helm 3.8 or later (OCI support).

Terminal window
helm install firehawk oci://ghcr.io/eos916101/charts/firehawk --version 1.0.0 \
-n firehawk --create-namespace \
--set ingress.enabled=true \
--set ingress.className=nginx \
--set ingress.host=firehawk.example.com

For anything beyond a test, keep your settings in a values file and install with -f values.yaml. The full list of values can be shown with:

Terminal window
helm show values oci://ghcr.io/eos916101/charts/firehawk --version 1.0.0

The bootstrap admin is admin@firehawk.local (bootstrapAdmin.email). Its password is generated unless bootstrapAdmin.password is set:

Terminal window
kubectl -n firehawk get secret firehawk -o jsonpath='{.data.BOOTSTRAP_ADMIN_PASSWORD}' | base64 -d; echo

With existingSecret, the password is the BOOTSTRAP_ADMIN_PASSWORD key of your own Secret. The account is only created on the first start, while the database has no user. Change the password after signing in.

Without an ingress, open the UI with a port forward:

Terminal window
kubectl -n firehawk port-forward svc/firehawk 8085:80
# then http://localhost:8085

or expose the frontend Service with frontend.service.type: LoadBalancer or NodePort (frontend.service.nodePort).

Terminal window
helm test firehawk -n firehawk

The test calls /api/ready through the frontend Service, which checks the UI, the API and the database in one request.

publicUrl: https://firehawk.example.com # default: derived from the ingress host
ingress:
enabled: true
className: nginx
host: firehawk.example.com
annotations:
cert-manager.io/cluster-issuer: letsencrypt
tls:
enabled: true
secretName: "" # empty = <release>-tls

publicUrl is the address users open. It is used in notification links and for the single sign-on redirect URI ({publicUrl}/api/auth/oidc/callback). It can also be changed later in the UI under Users & access, Single sign-on, Public URL.

SECRET_KEY signs sessions and encrypts stored SSH credentials, notification secrets and single sign-on settings. When secretKey is empty, the chart generates it once. The Secret <release> keeps it across upgrades and carries helm.sh/resource-policy: keep, so helm uninstall does not delete it. Delete that Secret yourself only together with the database.

To manage the secret yourself (for example with an external secrets operator), create a Secret with the keys SECRET_KEY and BOOTSTRAP_ADMIN_PASSWORD and reference it:

Terminal window
kubectl -n firehawk create secret generic firehawk-app \
--from-literal=SECRET_KEY=$(openssl rand -hex 32) \
--from-literal=BOOTSTRAP_ADMIN_PASSWORD='choose-a-strong-password'
existingSecret: firehawk-app

The built-in PostgreSQL is enabled by default:

postgresql:
enabled: true
auth:
username: firehawk
database: firehawk
password: "" # empty = generated once and kept; only used when the data directory is created
persistence:
enabled: true
size: 8Gi
storageClass: ""

For production, prefer a managed or operator-run PostgreSQL 14 or later:

postgresql:
enabled: false
externalDatabase:
url: postgresql://firehawk:secret@db.example.com:5432/firehawk
# or read the URL from an existing Secret, e.g. the one CloudNativePG creates:
# existingSecret: firehawk-db-app
# existingSecretKey: uri

postgres://, postgresql:// and postgresql+asyncpg:// URLs are accepted. The default existingSecretKey is DATABASE_URL.

Hosts using key file authentication read the file from /app/sshkeys. Mount the files from a Secret (read-only):

Terminal window
kubectl -n firehawk create secret generic firehawk-sshkeys --from-file=id_ed25519=./id_ed25519
sshKeys:
existingSecret: firehawk-sshkeys

Stored credentials on the Credentials page need no files and support rotation; prefer them on Kubernetes. See Credentials and jump hosts.

worker:
replicaCount: 2
concurrency: 8 # jobs per worker pod (WORKER_CONCURRENCY)
terminationGracePeriodSeconds: 40

With worker.replicaCount: 0, drift checks, rollouts, alias refreshes and notifications never run. See Background jobs and workers.

config:
tokenExpireMinutes: 720
sshConnectTimeout: 10
driftCheckIntervalMinutes: 30 # 0 = off
jobRetentionDays: 7
dbWaitSeconds: 90
extraEnv: [] # extra environment variables for api and worker pods

See Configuration for what each setting does.

imagePullSecrets:
- name: registry-pull
api:
image:
repository: registry.example.com/firehawk-api
tag: "1.0.0"
frontend:
image:
repository: registry.example.com/firehawk-frontend
tag: "1.0.0"

The worker uses the api image. Empty tags use the chart’s app version (the release version for published charts). Tags main and latest are pulled with Always, other tags with IfNotPresent unless pullPolicy is set.

Each component (api, worker, frontend, postgresql) accepts replicaCount (not postgresql), resources, nodeSelector, tolerations and affinity; api, worker and frontend also take podAnnotations, podLabels and securityContext. Top-level podSecurityContext and serviceAccount apply to all pods.

Terminal window
helm upgrade firehawk oci://ghcr.io/eos916101/charts/firehawk --version 1.0.1 \
-n firehawk -f values.yaml

Migrations run automatically when the new api and worker pods start. Back up the database and SECRET_KEY first; see Versions and upgrades.

Terminal window
helm uninstall firehawk -n firehawk

The Secret firehawk (with SECRET_KEY) is kept on purpose. The built-in database’s PersistentVolumeClaim is created by the StatefulSet and is not removed by Helm either; delete it and the Secret yourself if you want to remove all data.