uptime-kuma
by harish2k01
A Helm chart for Uptime Kuma - a self-hosted monitoring tool
About this chart
Uptime Kuma Helm Chart
Browse the Helm chart catalog to explore available charts and installation commands.
This chart deploys Uptime Kuma on Kubernetes with persistent application data, optional MariaDB support, and optional Ingress or Gateway API HTTPRoute access.
[!NOTE] This is an unofficial community Helm chart maintained by harish2k01. It is not affiliated with or endorsed by the upstream project. For chart issues, questions, or improvements, please open an issue in the harish2k01/helm-charts repository.
Install
helm repo add harish2k01 https://harish2k01.github.io/helm-charts
helm repo update
helm install uptime-kuma harish2k01/uptime-kuma
Install From OCI
This chart is also published as an OCI chart in GHCR. Use the same values and namespace flags with the OCI reference:
helm install uptime-kuma oci://ghcr.io/harish2k01/helm-charts/uptime-kuma --version 0.3.3
By default, Uptime Kuma stores data in SQLite under /app/data with a persistent volume.
Install With Ingress
ingress:
enabled: true
className: nginx
hosts:
- host: uptime.example.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: uptime-kuma-tls
hosts:
- uptime.example.com
helm install uptime-kuma harish2k01/uptime-kuma -f values.yaml
Install With Gateway API HTTPRoute
httpRoutes:
main:
enabled: true
parentRefs:
- name: gateway
namespace: gateway-system
sectionName: https
hostnames:
- uptime.example.com
Persistence
Application data is stored in /app/data:
persistence:
enabled: true
size: 2Gi
storageClassName: ""
accessModes:
- ReadWriteOnce
To use an existing PVC:
persistence:
enabled: true
existingClaim: uptime-kuma-data
Database Configuration
Uptime Kuma uses SQLite by default. The chart can also configure MariaDB, either as a built-in StatefulSet or as an external database.
Built-In MariaDB
Create a Secret for the MariaDB user password:
kubectl create secret generic uptime-kuma-db \
--from-literal=db-password='your_password'
Enable the built-in MariaDB StatefulSet:
database:
mariadb:
enabled: true
auth:
database: uptime_kuma
username: uptime_kuma
existingSecret: uptime-kuma-db
passwordKey: db-password
persistence:
enabled: true
size: 2Gi
External MariaDB
database:
external:
enabled: true
type: mariadb
host: mariadb.example.com
port: "3306"
database: uptime_kuma
username: uptime_kuma
existingSecret: uptime-kuma-db-external
passwordKey: db-password
The referenced Secret must contain the key configured by database.external.passwordKey.
Environment Variables
Set non-secret Uptime Kuma environment variables with env:
env:
UPTIME_KUMA_HOST: "0.0.0.0"
UPTIME_KUMA_PORT: "3001"
UPTIME_KUMA_WS_ORIGIN_CHECK: "cors-like"
Database-related environment variables are managed by the chart when database.mariadb.enabled or database.external.enabled is true.
Values
| Key | Type | Default | Description |
|---|---|---|---|
replicaCount | int | 1 | Number of Uptime Kuma replicas |
image.repository | string | louislam/uptime-kuma | Container image repository |
image.tag | string | 2.5.12-slim | Container image tag |
image.pullPolicy | string | IfNotPresent | Container pull policy |
service.type | string | ClusterIP | Kubernetes Service type |
service.port | int | 3001 | Kubernetes Service port |
ingress.enabled | bool | false | Create a Kubernetes Ingress |
httpRoutes.main.enabled | bool | false | Create a Gateway API HTTPRoute |
persistence.enabled | bool | true | Enable persistent storage for /app/data |
persistence.size | string | 2Gi | Application PVC size |
persistence.storageClassName | string | "" | Storage class for the application PVC |
persistence.existingClaim | string | "" | Use an existing PVC for application data |
database.mariadb.enabled | bool | false | Deploy built-in MariaDB |
database.mariadb.auth.existingSecret | string | "" | Existing Secret with MariaDB credentials |
database.mariadb.persistence.enabled | bool | true | Enable MariaDB persistent storage |
database.external.enabled | bool | false | Use an external MariaDB database |
database.external.host | string | "" | External MariaDB host |
env | object | {} | Additional non-secret environment variables |
resources | object | {} | Uptime Kuma container resource requests and limits |
nodeSelector | object | {} | Pod node selector |
tolerations | list | [] | Pod tolerations |
affinity | object | {} | Pod affinity |
Additional runtime configuration
env supports non-secret runtime tuning. Use extraEnv for individual valueFrom.secretKeyRef entries, envFrom for complete Secret/ConfigMap sources, and extraVolumes/extraVolumeMounts for TLS certificates or sockets. Set service.targetPort together with env.UPTIME_KUMA_PORT when changing the listener port. See CHANGELOG.md for upgrade details.
StatefulSet claim labels
Claim templates use stable identity labels so chart/app version changes do not modify immutable storage metadata. Normal workload labels still report the current versions. The following values merge explicitly pinned labels into each claim template:
database.mariadb.persistence.claimTemplateLabels
For an existing StatefulSet created by an older chart, copy the labels from its current spec.volumeClaimTemplates[].metadata.labels into the corresponding map before the first upgrade. Keep any historical helm.sh/chart and app.kubernetes.io/version labels fixed there; they describe the original claim template, not the running app. This preserves the immutable template without deleting or replacing the StatefulSet/PVC. Empty defaults suit new installations. Helm lookup is not required, so GitOps/offline rendering remains deterministic. Do not remove pinned labels later without a separately planned migration. Storage size, claim names, access modes and other immutable fields have their own migration constraints.
Multiple HTTPRoutes
Use httpRoutes to define one or more routes, each with its own Gateway
references, hostnames, annotations, and rules. The default main entry is disabled.
httpRoutes:
internal:
parentRefs:
- name: internal-gateway
namespace: ingress
sectionName: https
hostnames: [app.internal.example.com]
external:
parentRefs:
- name: external-gateway
namespace: ingress
sectionName: https
hostnames: [app.example.com]
Each map key is a lowercase DNS label of up to 40 characters and becomes the
resource-name suffix (<app-fullname>-internal, for example). Long base names are
shortened to keep the suffix and stay within 63 characters; collisions fail rendering.
| Key | Default | Description |
|---|---|---|
httpRoutes | Disabled main entry | Named HTTPRoutes; defaults create no routes. |
httpRoutes.<name>.enabled | true | Set false to omit an entry, including its attachments. |
httpRoutes.<name>.parentRefs | Required when enabled | Gateway references, with optional namespace and listener section. |
httpRoutes.<name>.hostnames | Required when enabled | Independent explicit hostname list. |
httpRoutes.<name>.annotations | {} | Per-route annotations. |
httpRoutes.<name>.rules | Path prefix / | Gateway API matches and filters. Backend references are always supplied by the chart using its application Service and HTTP port. |
Each route has independent hostnames, attachments, annotations, and rules. Chart-specific backend behavior is retained; Ghost also includes its ActivityPub endpoints when enabled. Gateway API CRDs and a compatible controller are required; the referenced Gateway must allow attachment from this namespace.
Migration from the single-route option
httpRoute has been removed. Move its settings under httpRoutes.main and remove
the old key entirely, including httpRoute.enabled: false. Old values fail
rendering with a migration message instead of silently dropping traffic. The old
resource <app-fullname> is replaced by <app-fullname>-main; coordinate the
upgrade with your GitOps pruning policy to avoid overlapping or missing routes.
Multiple hostnames and parent references apply to the whole route; use separate
entries when each hostname group must attach to a different Gateway.
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartuptime-kuma is pinned at v0.3.3 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