Helm chartv0.7.1App 2.38.0MITVerified publisher

ntfy lets you send push notifications to your phone or desktop via scripts from any computer, using simple HTTP PUT or POST requests

About this chart

Ad Noctem Collective - ntfy Helm Chart

ntfy (pronounced notify) is a simple HTTP-based pub-sub notification service. It allows you to send notifications to your phone or desktop via scripts from any computer, and/or using a REST API. It's infinitely flexible, and 100% free software. It delivers all of these features within a single Docker image available on Docker Hub.

Head to the ntfy GitHub Repository or their Website for in-depth documentation and configuration guides.

✨ TL;DR

Helm Repository Installation

helm repo add adnoctem https://adnoctem.github.io/charts
helm install ntfy adnoctem/ntfy --version X.Y.Z

OCI Installation

helm install oci://ghcr.io/adnoctem/charts/ntfy:X.Y.Z

Introduction

This chart bootstraps a ntfy StatefulSet or Deployment on a Kubernetes cluster using the Helm package manager. For cluster networking a Service and Ingress manifest is also created, whereas the Ingress needs to be explicitly enabled. Lastly the chart configures a PodDisruptionBudget if enabled. RBAC manifests are enabled by default.

The chart exposes ntfy configuration via the ntfy key in Helm's values and makes use of the official Docker Hub container image, although this is configurable via the Image Parameters.

Upgrading

To 0.7.0 (ntfy 2.36.0 -> 2.38.0)

This release includes a message-template denial-of-service fix and changes UnifiedPush subscriber tracking and rate-limit behavior. Review the 2.37.0, 2.37.1 and 2.38.0 release notes before upgrading. No Helm values are renamed or removed.

  • With ntfy.visitor.subscriberRateLimiting enabled, a UnifiedPush topic with no subscriber activity for four days now returns HTTP 410 (ntfy code 41002), replacing HTTP 507. Matrix pushes reject the abandoned topic's pushkey. App servers should remove expired subscriptions; clients returning after that interval may need to register again. Subscribing, polling and an open stream count as subscriber activity; publishing does not.
  • UnifiedPush traffic uses the subscriber's account quota only while the account has a tier. Otherwise it uses the subscriber's IP quota, including after tier removal or account deletion. Review quota assumptions in integrations. When a user database is configured, subscriber state now persists there across restarts.
  • Ban-feed defaults now weight authentication failures (42909) at 2 instead of 10, and missing or abandoned UnifiedPush subscribers (50701/41002) at 0.05. Review ban sensitivity if you leave ntfy.ban.weights empty; explicit weights retain your configuration. Nonzero weights must be between 0.001 and 1,000,000, and a configured ntfy.ban.threshold must not exceed 1,000,000,000. Correct larger existing values before upgrading.
  • Fully recovered visitor rate-limit state is discarded after roughly a minute instead of a day of inactivity. Update dashboards and alerts that interpret ntfy_visitors_total or the visitors stat as daily visitors. Idle topics without subscribers leave memory after six hours instead of sixteen; publishing recreates them and consumes the topic-creation allowance. Review ntfy.visitor.topicCreationLimitBurst and ntfy.visitor.topicCreationLimitReplenish for workloads that revisit many idle topics.
  • Message templates using replace, regexReplaceAll or join can no longer construct unbounded strings. Reduce oversized intermediate results if a previously accepted template now fails.

Back up persistent SQLite files and any external PostgreSQL database before upgrading. The user database moves from schema 10 to 11 to store topic subscriber state; the message-cache schema stays at 17. For rollback, restore the matching pre-upgrade database backup together with the previous image/chart. The database-write slowdown introduced in 2.37.0 is fixed in this target release. Experimental cluster options remain unexposed and disabled by this chart, so 2.38.0's cluster-wide rate-limit sharing does not change its single-node deployment model.

To 0.6.0 (ntfy 2.31.0 -> 2.36.0)

This is a breaking chart release because upstream changes quota enforcement and startup validation. Review the 2.35.0 and 2.36.0 release notes before upgrading:

  • Daily message, email and phone-call counts now survive restarts when ntfy.auth.file or ntfy.database.url is configured. Without a user database they remain in memory. Each visitor has its own 24-hour period instead of resetting at midnight UTC; use /v1/account's stats.reset_at when displaying the next reset. Existing daily counts reset once during the upgrade. Review quota settings and any automation that assumes a restart or midnight UTC replenishes allowances.
  • Tier changes preserve usage already consumed. Tier email limits are hard caps, including a zero limit; the burst allowance no longer permits extra daily emails. Visitors without a tier again have a daily email cap of 24h / ntfy.visitor.emailLimitReplenish (24 with the default 1h). Adjust tiers or the refill interval if legitimate traffic needs a larger allowance.
  • The server validates the rest of its configuration even when ntfy.baseURL is set or ntfy.message.sizeLimit exceeds 4K. Check startup logs and correct invalid combinations, such as incomplete upstream, email or web-push settings, that previously escaped validation.
  • A subscription accepts at most 150 distinct topics; duplicate topic names are ignored. Split larger subscriptions across connections and check ntfy.visitor.subscriptionLimit when doing so.
  • Revoking topic access or deleting a user now disconnects all affected subscriptions. Matrix push keys must identify valid topics. Clients must not rely on the previous authorization gaps.

Back up the PVC and any external PostgreSQL database before upgrading. ntfy migrates the message store from schema 16 to 17 and the user store from 9 to 10. Older images may refuse the migrated schemas; plan a rollback using the matching pre-upgrade database backup and chart version, rather than only reverting the image tag. Servers sharing PostgreSQL must have synchronized clocks for shared daily limits.

No Helm values are renamed or removed. Keep ntfy.listenHTTP in single :port form: upstream supports multiple HTTP listeners, but this chart's Service and container ports do not. Experimental clustering and the local admin socket remain unexposed and disabled by this chart.

To 0.5.0 (ntfy 2.29.0 -> 2.31.0)

ntfy 2.31.0 recovers missed messages from the cache and adds a readiness endpoint. Pod readiness now uses /v1/ready; liveness and startup use /v1/health, so probes also work with the web UI disabled. Custom images must provide these endpoints.

Subscriptions using since=<message-id> now replay other messages from the same second. Custom consumers must deduplicate by message ID to avoid processing a notification twice. Existing chart configuration remains compatible; back up persistent data before upgrading.

Upstream now implements experimental PostgreSQL clustering, but it is not ready for production. This chart continues to expose single-node configuration and does not expose the experimental cluster options.

To 0.4.1 (ntfy 2.28.0 -> 2.29.0)

[ntfy 2.29.0][release_2290] improves cache writes during publish bursts and flushes queued writes on graceful shutdown. Existing chart values remain compatible; no configuration migration is required.

Delayed notifications now accept timezones through the X-Timezone header, timezone query parameter or JSON field, and support RFC 3339 timestamps. These are publish-request options; no Helm value is needed.

For PostgreSQL installations, the idle-connection limit now defaults to pool_max_conns (10 by default). If you need the previous two-idle-connection limit, explicitly set pool_max_idle_conns=2 in the query string of ntfy.database.url. See the [tagged database configuration reference][config_2290].

The new experimental-cluster-* options are reserved for future use. This chart does not expose them because clustering is not functional in 2.29.0; setting experimental-cluster-listen prevents the server from starting.

To 0.4.0 (ntfy 2.11.0 -> 2.28.0)

  • appVersion bumped from 2.11.0 to 2.28.0. Review the upstream release notes for the full history; the items below are what's relevant to this chart's configuration.
  • Fixed a bug where ntfy.message.delayLimit rendered the wrong config key (message-size-limit, duplicating ntfy.message.sizeLimit's line, instead of message-delay-limit) - if you were relying on this value, it was never actually being applied.
  • Message title and tag size limits are now enforced (upstream 2.28.0, potentially breaking): message titles over 1 KB and combined tags over 512 bytes are now rejected with HTTP 400, where neither had a limit before.
  • ntfy.visitor.attachmentDailyBandwidthLimit now also covers cache-replay traffic (upstream 2.28.0): polling a topic without a since cursor replays its entire cache, and that traffic now counts against the same daily budget as attachment downloads - operators serving heavy pollers may need to raise this limit.
  • Added support for the following upstream additions: ntfy.database.url (PostgreSQL support, replacing SQLite for message cache/auth/web-push storage when set), ntfy.requireLogin, ntfy.proxyForwardedHeader / ntfy.proxyTrustedHosts, ntfy.auth.accessCache, ntfy.smtp.senderVerify, ntfy.visitor.topicCreationLimitBurst / ntfy.visitor.topicCreationLimitReplenish, and a new ntfy.ban section for the fail2ban-style abuse-ban-file feature.

Parameters

ntfy Image parameters

NameDescriptionValue
image.registryThe Docker registry to pull the image fromdocker.io
image.repositoryThe registry repository to pull the image frombinwiederhier/ntfy
image.tagThe image tag to pullv2.38.0
image.digestThe image digest to pull""
image.pullPolicyThe Kubernetes image pull policyIfNotPresent
image.pullSecretsA list of secrets to use for pulling images from private registries[]

Name overrides

NameDescriptionValue
nameOverrideString to partially override ntfy.fullname""
fullnameOverrideString to fully override ntfy.fullname""

Workload overrides

NameDescriptionValue
kindThe kind of workload to deploy ntfy as (StatefulSet or Deployment)StatefulSet

ntfy Configuration parameters

NameDescriptionValue
ntfy.baseURLThe public facing URL for the service (e.g. https://ntfy.example.com)""
ntfy.listenHTTPSingle HTTP listen address in :port form (e.g. ":8080"); multiple addresses are unsupported""
ntfy.listenHTTPSThe listen address for the HTTPS server (e.g. ":443", "127.0.0.1:443") -""
ntfy.listenUnixThe path to a Unix socket to listen on (e.g. "/var/run/ntfy/ntfy.sock")""
ntfy.listenUnixModeThe Linux permissions for the Unix socket (e.g. "0700")""
ntfy.keyFileThe path to a certificate key file (e.g. "/var/lib/ntfy/tls.key")

Deploy ntfy with OpenTenant

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