uptime-kuma

by ScriptonBasestar

Helm chartv0.4.0App 2.0.2BSD-3-Clause

Self-hosted monitoring tool with beautiful UI and 90+ notification services

About this chart

Uptime Kuma Helm Chart

A self-hosted monitoring tool with beautiful UI, multi-protocol support, and flexible alerting.

Features

  • 🖥️ Beautiful Dashboard: Modern, intuitive web interface
  • 📊 Multi-Protocol Monitoring: HTTP(s), TCP, Ping, DNS, SMTP, and more
  • 📱 90+ Notification Services: Telegram, Discord, Slack, Email, and many more
  • 📈 Status Pages: Public status pages for your services
  • 🔐 Multi-User Support: User management with 2FA
  • 🌍 Multi-Language: Support for 25+ languages
  • 📦 Lightweight: Single Docker container, low resource usage

Prerequisites

Deployment Scenarios

This chart includes three pre-configured deployment scenarios optimized for different use cases:

Home Server (values-home-single.yaml)

Minimal resources for personal servers, home labs, Raspberry Pi, or Intel NUC:

helm install uptime-kuma-home charts/uptime-kuma \
  -f charts/uptime-kuma/values-home-single.yaml

Resource allocation: 50-250m CPU, 128-256Mi RAM, 2Gi storage

Startup Environment (values-startup-single.yaml)

Balanced configuration for small teams, startups, and development environments:

helm install uptime-kuma-startup charts/uptime-kuma \
  -f charts/uptime-kuma/values-startup-single.yaml

Resource allocation: 100-500m CPU, 256-512Mi RAM, 5Gi storage

Production HA (values-prod-master-replica.yaml)

High availability deployment with monitoring and enhanced reliability:

helm install uptime-kuma-prod charts/uptime-kuma \
  -f charts/uptime-kuma/values-prod-master-replica.yaml

Features: PodDisruptionBudget, NetworkPolicy, ServiceMonitor, enhanced probes

Resource allocation: 250m-1000m CPU, 512Mi-1Gi RAM, 10Gi storage

For detailed comparison and configuration examples, see the Scenario Values Guide.

  • Kubernetes 1.22+
  • Helm 3.0+
  • PersistentVolume provisioner (for data persistence)
  • Optional: External MySQL/MariaDB (for production environments)

Quick Start

1. Install with SQLite (Default)

helm install uptime-kuma ./charts/uptime-kuma

2. Access Uptime Kuma

kubectl port-forward svc/uptime-kuma 3001:3001
# Visit http://localhost:3001
# Create admin account on first access

Configuration

Database Options

SQLite (Default - Recommended for Small Deployments)

uptimeKuma:
  database:
    type: "sqlite"

persistence:
  enabled: true
  size: 4Gi

Pros:

  • Zero configuration
  • No external dependencies
  • Perfect for homelab/small deployments

Cons:

  • Single file database
  • Not suitable for high-traffic environments

MariaDB (Recommended for Production)

uptimeKuma:
  database:
    type: "mariadb"
    mariadb:
      host: "mariadb.default.svc.cluster.local"
      port: 3306
      database: "uptime_kuma"
      username: "uptime_kuma"
      password: "changeme123"

Pros:

  • Better performance under load
  • Easier backups
  • Multiple replicas possible

Setup external MariaDB:

# Using sb-helm-charts MySQL chart
helm install mariadb ./charts/mysql \
  --set auth.database=uptime_kuma \
  --set auth.username=uptime_kuma \
  --set auth.password=secure_password

SSL/TLS Configuration

uptimeKuma:
  ssl:
    enabled: true
    keyPath: "/certs/tls.key"
    certPath: "/certs/tls.crt"
    keyPassphrase: ""  # Optional

extraVolumes:
  - name: ssl-certs
    secret:
      secretName: uptime-kuma-tls

extraVolumeMounts:
  - name: ssl-certs
    mountPath: /certs
    readOnly: true

Ingress Configuration

ingress:
  enabled: true
  className: "nginx"
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
  hosts:
    - host: uptime.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: uptime-kuma-tls
      hosts:
        - uptime.example.com

WebSocket Configuration for Reverse Proxy

If using a reverse proxy, you may need to bypass WebSocket origin checks:

uptimeKuma:
  security:
    wsOriginCheck: "bypass"  # Required for most reverse proxies

Resource Limits

Homelab/Small Deployment:

resources:
  limits:
    cpu: 500m
    memory: 512Mi
  requests:
    cpu: 100m
    memory: 128Mi

Production:

resources:
  limits:
    cpu: 2000m
    memory: 2Gi
  requests:
    cpu: 500m
    memory: 512Mi

Persistent Storage

Uptime Kuma requires persistent storage for:

  • SQLite database (if using SQLite)
  • Configuration and certificates
  • Status page data

Important: NFS is NOT supported. Use local directories or cloud-native persistent volumes.

persistence:
  enabled: true
  storageClass: "fast-ssd"  # Use fast storage for SQLite
  accessMode: ReadWriteOnce
  size: 4Gi

Monitoring Setup

After installation, configure monitors via the web UI:

  1. HTTP(s) Monitor

    • URL: https://example.com
    • Check interval: 60 seconds
    • Retries: 3
  2. TCP Monitor

    • Hostname: database.internal
    • Port: 5432
  3. Ping Monitor

    • Hostname: 8.8.8.8
    • Packet count: 3
  4. DNS Monitor

    • Resolver: 8.8.8.8
    • Record: example.com
    • Type: A

Notification Services

Uptime Kuma supports 90+ notification providers. Configure via web UI:

Popular Services:

  • Telegram: Bot token + Chat ID
  • Discord: Webhook URL
  • Slack: Webhook URL
  • Email: SMTP settings
  • PagerDuty: Integration key
  • Webhook: Custom webhooks

Status Pages

Create public status pages:

  1. Go to "Status Pages" in web UI
  2. Create new status page
  3. Select monitors to display
  4. Customize appearance
  5. Publish (accessible at /status/{slug})

Operational Commands

This chart includes a comprehensive Makefile for day-2 operations:

# View logs and access shell
make -f make/ops/uptime-kuma.mk uk-logs
make -f make/ops/uptime-kuma.mk uk-shell

# Port forward to localhost:3001
make -f make/ops/uptime-kuma.mk uk-port-forward

# Health checks
make -f make/ops/uptime-kuma.mk uk-db-check
make -f make/ops/uptime-kuma.mk uk-check-data

# Database management (SQLite)
make -f make/ops/uptime-kuma.mk uk-backup-database
make -f make/ops/uptime-kuma.mk uk-restore-database FILE=path/to/kuma.db

# Monitor management
make -f make/ops/uptime-kuma.mk uk-check-monitors
make -f make/ops/uptime-kuma.mk uk-list-monitors

# Status pages
make -f make/ops/uptime-kuma.mk uk-list-status-pages

# Operations
make -f make/ops/uptime-kuma.mk uk-restart

# Full help
make -f make/ops/uptime-kuma.mk uk-help

Troubleshooting

WebSocket Connection Failed

Symptom: "WebSocket connection failed" error in browser

Solution:

uptimeKuma:
  security:
    wsOriginCheck: "bypass"

Also ensure reverse proxy forwards WebSocket headers:

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

Database Lock Errors (SQLite)

Symptom: "database is locked" errors

Solution:

  • Ensure strategy.type: Recreate (only one pod at a time)
  • Use accessMode: ReadWriteOnce for PVC
  • Consider migrating to MariaDB for multi-replica setup

High Memory Usage

Symptom: Pod OOMKilled

Solution:

resources:
  limits:
    memory: 1Gi  # Increase from default 512Mi
  requests:
    memory: 256Mi

NFS Mount Errors

Symptom: Database corruption or mount errors

Solution:

  • Uptime Kuma does NOT support NFS
  • Use local storage or cloud-native PVs (EBS, PD, Azure Disk)
  • For NFS environments, use MariaDB instead of SQLite

Production Deployment

High Availability (with MariaDB)

uptimeKuma:
  database:
    type: "mariadb"
    mariadb:
      host: "mariadb-primary"
      password: "secure_password"

replicaCount: 2

podDisruptionBudget:
  enabled: true
  minAvailable: 1

affinity:
  podAntiAffinity:
    preferredDuringSchedulingIgnoredDuringExecution:
      - weight: 100
        podAffinityTerm:
          labelSelector:
            matchLabels:
              app.kubernetes.io/name: uptime-kuma
          topologyKey: kubernetes.io/hostname

Note: SQLite does NOT support multiple replicas. Use MariaDB for HA.

Network Security

networkPolicy:
  enabled: true
  policyTypes:
    - Ingress
    - Egress
  ingress:
    - from:
        - namespaceSelector:
            matchLabels:
              name: production
      ports:
        - protocol: TCP
          port: 3001
  egress:
    - to:
        - namespaceSelector: {}
      ports:
        - protocol: TCP
          port: 3306  # MariaDB
        - protocol: TCP
          port: 443   # HTTPS monitors

Monitoring with Prometheus

monitoring:
  enabled: true
  serviceMonitor:
    enabled: true
    interval: 30s

Note: Uptime Kuma does not expose Prometheus metrics by default. You may need to configure external exporters or use Uptime Kuma's API.

Values

KeyTypeDefaultDescription
uptimeKuma.portint3001Application port
uptimeKuma.database.typestring"sqlite"Database type (sqlite or mariadb)
uptimeKuma.database.mariadb.hoststring""MariaDB host (required if type=mariadb)
uptimeKuma.database.mariadb.passwordstring""MariaDB password (required if type=mariadb)
persistence.enabledbooltrueEnable persistent storage
persistence.sizestring"4Gi"Storage size
ingress.enabledboolfalseEnable ingress
resources.limits.memorystring"512Mi"Memory limit

For full configuration options, see values.yaml.

Migration from Other Deployments

From Docker to Kubernetes

  1. Export data from Docker volume:
docker cp uptime-kuma:/app/data ./backup-data/
  1. Create PVC and copy data:
helm install uptime-kuma ./charts/uptime-kuma
kubectl cp ./backup-data/kuma.db uptime-kuma-0:/app/data/
kubectl rollout restart deployment/uptime-kuma

From SQLite to MariaDB

Uptime Kuma does not provide automatic migration. You'll need to:

  1. Export monitors configuration (backup)
  2. Deploy with MariaDB
  3. Manually recreate monitors

Backup & Recovery

Comprehensive backup and recovery procedures for Uptime Kuma deployments.

Backup Components

Uptime Kuma backup strategy covers 4 components:

ComponentPrioritySizeBackup Method
Data PVC🔴 Critical100MB-2GBtar, Restic, VolumeSnapshot
SQLite DB🔴 Critical50MB-1GBSQLite .backup
Configuration🟡 Important<1MBhelm get values
MariaDB (optional)🟠 HighVariesmysqldump

Quick Backup Commands

# Full backup (data PVC + database)
make -f make/ops/uptime-kuma.mk uk-full-backup

# Database-only backup
make -f make/ops/uptime-kuma.mk uk-backup-database

# Data PVC backup
make -f make/ops/uptime-kuma.mk uk-backup-data

# Check backup status
make -f make/ops/uptime-kuma.mk uk-backup-status

Output: Backups saved to tmp/uptime-kuma-backups/data-YYYYMMDD-HHMMSS.tar.gz

Recovery Workflow

Complete disaster recovery in 4 steps:

# 1. Install fresh Uptime Kuma chart
helm install uptime-kuma sb-charts/uptime-kuma -f values.yaml

# 2. Restore data from backup
make -f make/ops/uptime-kuma.mk uk-restore-data \
  FILE=tmp/uptime-kuma-backups/data-20250109-143022.tar.gz

# 3. Restart pod to reload data
kubectl rollout restart deployment/uptime-kuma

# 4. Verify restoration
make -f make/ops/uptime-kuma.mk uk-check-monitors

Validation:

# Verify monitors restored
# Access UI: Dashboard → Monitors (check count)

# Check database integrity
make -f make/ops/uptime-kuma.mk uk-db-check

Backup Strategies

1. Automated Daily Backups (Recommended)

Create a CronJob for automated backups:

# backup-cronjob.yaml
apiVersion: batch/v1
kind: CronJob
metadata:
  name: uptime-kuma-backup
spec:
  schedule: "0 2 * * *"  # 2 AM daily
  jobTemplate:
    spec:
      template:
        spec:
          serviceAccountName: uptime-kuma
          containers:
          - name: backup
            image: alpine:3.18
            command:
            - /bin/sh
            - -c
            - |
              apk add --no-cache tar gzip
              cd /app/data
              tar czf /backup/data-$(date +%Y%m%d-%H%M%S).tar.gz .
              # Keep only last 7 days
              find /backup -name "data-*.tar.gz" -mtime +7 -delete
            volumeMounts:
            - name: data
              mountPath: /app/data
            - name: backup
              mountPath: /backup
          volumes:
          - name: data
            persistentVolumeClaim:
              claimName: uptime-kuma-data
          - name: backup
            persistentVolumeClaim:
              claimName: uptime-kuma-backups
          restartPolicy: OnFailure

2. Restic Incremental Backups

Efficient incremental backups with deduplication:

# Initialize Restic repository
export RESTIC_REPOSITORY=s3:s3.amazonaws.com/my-backups/uptime-kuma
export RESTIC_PASSWORD=<secure-password>
restic init

# Backup data PVC
POD=$(kubectl get pods -l app.kubernetes.io/name=uptime-kuma -o jsonpath='{.items[0].metadata.name}')
kubectl exec $POD -- tar czf - /app/data | \
  restic backup --stdin --stdin-filename uptime-kuma-data.tar.gz

# Verify backup
restic snapshots

# Restore specific snapshot
restic restore latest --target /restore/

3. Volume Snapshots (Fastest)

Use Kubernetes VolumeSnapshot API for instant backups:

# volumesnapshot.yaml
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
  name: uptime-kuma-data-snapshot
spec:
  volumeSnapshotClassName: csi-ho

Deploy uptime-kuma with OpenTenant

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