kairos
by wenisch.tech
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_statusgauge per resource at/actuator/prometheus
More Information
| Resource | Link |
|---|---|
| Official Website | kairos.wenisch.tech |
| Documentation | kairos.wenisch.tech/docs |
| GitHub Repository | github.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
| Parameter | Default | Description |
|---|---|---|
image.registry | ghcr.io | Container registry |
image.repository | jfwendisch/kairos | Image repository |
image.tag | latest | Image tag / version |
image.pullPolicy | IfNotPresent | Image pull policy |
Service Configuration
| Parameter | Default | Description |
|---|---|---|
service.type | ClusterIP | Kubernetes service type |
service.port | 8080 | Service port |
service.targetPort | 8080 | Container target port |
Persistence Configuration
| Parameter | Default | Description |
|---|---|---|
persistence.enabled | false | Enable persistent storage |
persistence.size | 1Gi | PVC size |
persistence.storageClassName | "" | Storage class name |
persistence.mountPath | /app/data | Mount path in container |
Rollout Configuration
| Parameter | Default | Description |
|---|---|---|
updateStrategy | {} | Deployment strategy. Empty means Recreate when persistence.enabled=true (the embedded H2 file store allows a single writer only) and RollingUpdate otherwise |
terminationGracePeriodSeconds | 60 | Time the pod gets to drain requests and close the database before SIGKILL |
Resource Limits
| Parameter | Default | Description |
|---|---|---|
resources.requests.cpu | 100m | CPU request |
resources.requests.memory | 256Mi | Memory request |
resources.limits.cpu | 500m | CPU limit |
resources.limits.memory | 512Mi | Memory limit |
Environment Variables - Database
| Env Variable | Default | Description |
|---|---|---|
SPRING_DATASOURCE_URL | (auto H2) | JDBC URL for database |
SPRING_DATASOURCE_USERNAME | sa | Database username |
SPRING_DATASOURCE_PASSWORD | (empty) | Database password (use secrets) |
SPRING_JPA_DATABASE_PLATFORM | org.hibernate.dialect.H2Dialect | Hibernate dialect; override with org.hibernate.dialect.PostgreSQLDialect for PostgreSQL |
Environment Variables - Session Cookies
| Env Variable | Default | Description |
|---|---|---|
SERVER_SERVLET_SESSION_COOKIE_SAME_SITE | none | Allows the session cookie to survive cross-site OIDC redirects |
SERVER_SERVLET_SESSION_COOKIE_SECURE | true | Sends the session cookie only over HTTPS |
SERVER_FORWARD_HEADERS_STRATEGY | framework | Uses Forwarded / X-Forwarded-* headers to create HTTPS redirects behind an ingress |
Environment Variables - OIDC / OAuth2
| Env Variable | Default | Description |
|---|---|---|
OIDC_ENABLED | false | Enable OIDC authentication |
OIDC_CREATEUSERS | true | Auto-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_TLS | false | Disable OIDC certificate and hostname verification temporarily; do not use in production |
Health Probes
| Parameter | Default | Description |
|---|---|---|
livenessProbe.enabled | true | Enable liveness probe |
readinessProbe.enabled | true | Enable readiness probe |
Metrics Scraping
The chart adds Prometheus scrape annotations to the Service by default:
prometheus.io/scrape: "true"prometheus.io/path: /actuator/prometheusprometheus.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:
| Parameter | Default | Description |
|---|---|---|
metrics.path | /actuator/prometheus | Scrape path |
metrics.serviceAnnotations.enabled | true | Add prometheus.io/* annotations to the Service |
metrics.podAnnotations.enabled | false | Add prometheus.io/* annotations to the pod template |
metrics.serviceMonitor.enabled | false | Create a ServiceMonitor resource |
metrics.serviceMonitor.namespace | "" | Namespace for the ServiceMonitor resource |
metrics.serviceMonitor.interval | 30s | Prometheus scrape interval |
metrics.serviceMonitor.scrapeTimeout | 10s | Prometheus 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
| Password | |
|---|---|
[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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkairos is pinned at v2.26.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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