kairos

by wenisch.tech

Helm chartv2.26.1App 2.26.1AGPL-3.0

A self-hosted uptime and availability monitoring application

About this chart

Kairos Helm Chart

Kairos is a self-hosted uptime and availability monitoring application built with Spring Boot. It periodically checks whether your HTTP services and Docker images are reachable, stores a full check history, and presents the results on a clean status dashboard — with Prometheus metrics included.

This Helm chart deploys Kairos to a Kubernetes cluster.

Features

  • HTTP monitoring — periodic HTTP GET checks with configurable interval and parallelism
  • Latency tracking — per-check latency with DNS, TCP, and TLS breakdown; interactive trend chart on the resource detail page
  • Docker image monitoring — validates image pullability via the OCI/Docker Registry HTTP API (no Docker socket required)
  • Docker repository discovery — provide a repository prefix and Kairos auto-creates resources for discovered images
  • Authentication support — per-resource-type Basic Auth credentials with wildcard URL pattern matching
  • Status dashboard — 24-hour timeline, uptime percentages (24 h / 7 d / 30 d), and full check history per resource
  • Outage tracking — per-resource outage lifecycle with active outage indicators and live "since" counters
  • Resource groups — organise resources into named groups with per-group visibility controls (PUBLIC, AUTHENTICATED, HIDDEN)
  • Announcement system — publish rich-text announcements with severity levels and optional auto-expiry
  • Embeddable status widget — lightweight iframe status badge with domain allowlist control
  • API keys — generate and revoke named API keys for machine-to-machine access
  • YAML import / export — versioned, forward-compatible resource exchange format
  • OIDC / OAuth2 login — plug in any OpenID Connect provider (Keycloak, Auth0, etc.)
  • Prometheus metrics — kairos_resource_status gauge per resource at /actuator/prometheus

More Information

ResourceLink
Official Websitekairos.wenisch.tech
Documentationkairos.wenisch.tech/docs
GitHub Repositorygithub.com/wenisch-tech/Kairos

Prerequisites

  • Kubernetes 1.20+
  • Helm 3.0+

Installation

Add the Helm Repository (optional, if hosted)

# Direct installation from chart source
cd charts/kairos

Install the Chart

helm install kairos . -n kairos --create-namespace

Upgrade an Existing Release

helm upgrade kairos . -n kairos

Uninstall the Chart

helm uninstall kairos -n kairos

Configuration

All values are optional. The application uses sensible defaults, but you can customize the deployment by modifying values.yaml or passing values via the --set flag.

Basic Examples

Using H2 Database (Default)

helm install kairos . -n kairos --create-namespace

Enables persistence to store data in /app/data:

helm install kairos . -n kairos --create-namespace \
  --set persistence.enabled=true \
  --set persistence.size=5Gi

Using PostgreSQL

helm install kairos . -n kairos --create-namespace \
  --set env.SPRING_DATASOURCE_URL="jdbc:postgresql://postgres:5432/kairos" \
  --set env.SPRING_DATASOURCE_USERNAME="kairos" \
  --set env.SPRING_JPA_DATABASE_PLATFORM="org.hibernate.dialect.PostgreSQLDialect" \
  --set secrets.SPRING_DATASOURCE_PASSWORD="your-password"

The chart defaults to H2 and therefore sets SPRING_JPA_DATABASE_PLATFORM to org.hibernate.dialect.H2Dialect. Set it to org.hibernate.dialect.PostgreSQLDialect when using PostgreSQL.

Enable OIDC / OAuth2 (e.g., Keycloak)

helm install kairos . -n kairos --create-namespace \
  --set env.OIDC_ENABLED="true" \
  --set env.OIDC_CREATEUSERS="true" \
  --set env.OIDC_ISSUER_URI="https://keycloak.example.com/realms/myrealm" \
  --set env.OIDC_CLIENT_ID="kairos" \
  --set secrets.OIDC_CLIENT_SECRET="your-secret"

For a temporary workaround while diagnosing a private or self-signed issuer certificate, set env.OIDC_IGNORE_TLS="true". This disables both certificate and hostname verification for OIDC HTTPS requests. Install the issuer CA into the container trust store instead for production use.

You can also pass the OIDC client secret directly via env when you do not want Helm to create a Kubernetes Secret for it:

helm install kairos . -n kairos --create-namespace \
  --set env.OIDC_ENABLED="true" \
  --set env.OIDC_CREATEUSERS="true" \
  --set env.OIDC_ISSUER_URI="https://keycloak.example.com/realms/myrealm" \
  --set env.OIDC_CLIENT_ID="kairos" \
  --set env.OIDC_CLIENT_SECRET="your-secret"

Enable Ingress

helm install kairos . -n kairos --create-namespace \
  --set ingress.enabled=true \
  --set ingress.className=nginx \
  --set ingress.hosts[0].host=kairos.example.com \
  --set ingress.hosts[0].paths[0].path=/ \
  --set ingress.hosts[0].paths[0].pathType=Prefix

Key Configuration Options

Image Configuration

ParameterDefaultDescription
image.registryghcr.ioContainer registry
image.repositoryjfwendisch/kairosImage repository
image.taglatestImage tag / version
image.pullPolicyIfNotPresentImage pull policy

Service Configuration

ParameterDefaultDescription
service.typeClusterIPKubernetes service type
service.port8080Service port
service.targetPort8080Container target port

Persistence Configuration

ParameterDefaultDescription
persistence.enabledfalseEnable persistent storage
persistence.size1GiPVC size
persistence.storageClassName""Storage class name
persistence.mountPath/app/dataMount path in container

Rollout Configuration

ParameterDefaultDescription
updateStrategy{}Deployment strategy. Empty means Recreate when persistence.enabled=true (the embedded H2 file store allows a single writer only) and RollingUpdate otherwise
terminationGracePeriodSeconds60Time the pod gets to drain requests and close the database before SIGKILL

Resource Limits

ParameterDefaultDescription
resources.requests.cpu100mCPU request
resources.requests.memory256MiMemory request
resources.limits.cpu500mCPU limit
resources.limits.memory512MiMemory limit

Environment Variables - Database

Env VariableDefaultDescription
SPRING_DATASOURCE_URL(auto H2)JDBC URL for database
SPRING_DATASOURCE_USERNAMEsaDatabase username
SPRING_DATASOURCE_PASSWORD(empty)Database password (use secrets)
SPRING_JPA_DATABASE_PLATFORMorg.hibernate.dialect.H2DialectHibernate dialect; override with org.hibernate.dialect.PostgreSQLDialect for PostgreSQL

Environment Variables - Session Cookies

Env VariableDefaultDescription
SERVER_SERVLET_SESSION_COOKIE_SAME_SITEnoneAllows the session cookie to survive cross-site OIDC redirects
SERVER_SERVLET_SESSION_COOKIE_SECUREtrueSends the session cookie only over HTTPS
SERVER_FORWARD_HEADERS_STRATEGYframeworkUses Forwarded / X-Forwarded-* headers to create HTTPS redirects behind an ingress

Environment Variables - OIDC / OAuth2

Env VariableDefaultDescription
OIDC_ENABLEDfalseEnable OIDC authentication
OIDC_CREATEUSERStrueAuto-create Kairos users on first successful OIDC login
OIDC_ISSUER_URI(empty)OIDC provider issuer URI (e.g. Keycloak realm)
OIDC_CLIENT_ID(empty)OIDC client ID
OIDC_CLIENT_SECRET(empty)OIDC client secret (can be set directly, but secrets is preferred)
OIDC_IGNORE_TLSfalseDisable OIDC certificate and hostname verification temporarily; do not use in production

Health Probes

ParameterDefaultDescription
livenessProbe.enabledtrueEnable liveness probe
readinessProbe.enabledtrueEnable readiness probe

Metrics Scraping

The chart adds Prometheus scrape annotations to the Service by default:

  • prometheus.io/scrape: "true"
  • prometheus.io/path: /actuator/prometheus
  • prometheus.io/port: "8080"

That is enough for Prometheus setups that discover annotated services.

If you use Prometheus Operator / kube-prometheus-stack, enable the optional ServiceMonitor:

helm install kairos . -n kairos \
  --set metrics.serviceMonitor.enabled=true

Useful values:

ParameterDefaultDescription
metrics.path/actuator/prometheusScrape path
metrics.serviceAnnotations.enabledtrueAdd prometheus.io/* annotations to the Service
metrics.podAnnotations.enabledfalseAdd prometheus.io/* annotations to the pod template
metrics.serviceMonitor.enabledfalseCreate a ServiceMonitor resource
metrics.serviceMonitor.namespace""Namespace for the ServiceMonitor resource
metrics.serviceMonitor.interval30sPrometheus scrape interval
metrics.serviceMonitor.scrapeTimeout10sPrometheus scrape timeout

Sensitive Data (Secrets)

Use the secrets section in values.yaml or pass sensitive values via --set:

helm install kairos . -n kairos \
  --set secrets.SPRING_DATASOURCE_PASSWORD="db-password" \
  --set secrets.OIDC_CLIENT_SECRET="oidc-secret"

Secrets are stored in a Kubernetes Secret resource and mounted as environment variables in the pod.

If you set the same key in both env and secrets, the secrets value takes precedence and the plain env entry is omitted from the rendered Deployment.

Pod Security Context

The chart runs the container as a non-root user (uid: 65532) with read-only filesystem where possible. Override with:

helm install kairos . -n kairos \
  --set podSecurityContext.runAsUser=1000 \
  --set podSecurityContext.fsGroup=1000

Accessing the Application

Port Forward (ClusterIP Service)

kubectl port-forward -n kairos svc/kairos 8080:8080
# Open http://localhost:8080

Ingress

If ingress is enabled, access via the configured hostname (e.g., https://kairos.example.com).

Default Credentials

EmailPassword
[email protected]admin

⚠️ Change the default password immediately after first login via Admin → Users.

Troubleshooting

Check Pod Status

kubectl get pods -n kairos
kubectl describe pod -n kairos <pod-name>

View Logs

kubectl logs -n kairos -f deployment/kairos

Verify Configuration

kubectl get configmap -n kairos kairos -o yaml
kubectl get secret -n kairos kairos -o yaml  # (if secrets exist)

Connect to H2 Console (debugging)

If using H2 and persistence is enabled:

kubectl port-forward -n kairos svc/kairos 8080:8080
# Open http://localhost:8080/h2-console
# JDBC URL: jdbc:h2:file:/app/data/kairos

Values Reference

See values.yaml for all available configuration options with comments.

License

GNU GPL v3.0

Deploy kairos with OpenTenant

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