ntfy
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
FMJ Studios - 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 fmjstudios https://fmjstudios.github.io/helm
helm install ntfy fmjstudios/ntfy --version X.Y.Z
OCI Installation
helm install oci://ghcr.io/fmjstudios/helm/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 supports the configuration of
all ntfy environment variables 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.
Parameters
ntfy Image parameters
| Name | Description | Value |
|---|---|---|
image.registry | The Docker registry to pull the image from | docker.io |
image.repository | The registry repository to pull the image from | binwiederhier/ntfy |
image.tag | The image tag to pull | v2.11.0 |
image.digest | The image digest to pull | "" |
image.pullPolicy | The Kubernetes image pull policy | IfNotPresent |
image.pullSecrets | A list of secrets to use for pulling images from private registries | [] |
Name overrides
| Name | Description | Value |
|---|---|---|
nameOverride | String to partially override ntfy.fullname | "" |
fullnameOverride | String to fully override ntfy.fullname | "" |
Workload overrides
| Name | Description | Value |
|---|---|---|
kind | The kind of workload to deploy ntfy as (StatefulSet or Deployment) | StatefulSet |
ntfy Configuration parameters
| Name | Description | Value |
|---|---|---|
ntfy.baseURL | The public facing URL for the service (e.g. https://ntfy.example.com) | "" |
ntfy.listenHTTP | The listen address for the HTTP server (e.g. ":80", "127.0.0.1:80") | "" |
ntfy.listenHTTPS | The listen address for the HTTPS server (e.g. ":443", "127.0.0.1:443") - | "" |
ntfy.listenUnix | The path to a Unix socket to listen on (e.g. "/var/run/ntfy/ntfy.sock") | "" |
ntfy.listenUnixMode | The Linux permissions for the Unix socket (e.g. "0700") | "" |
ntfy.keyFile | The path to a certificate key file (e.g. "/var/lib/ntfy/tls.key") | "" |
ntfy.certFile | The path to a certificate file (e.g. "/var/lib/ntfy/tls.crt") | "" |
ntfy.firebaseKeyFile | The path to a Firebase key file (e.g. "/var/lib/ntfy/key.json") | "" |
ntfy.behindProxy | Whether or not ntfy is hosted behind a proxy | false |
ntfy.keepaliveInterval | Interval in which keepalive messages are sent to the client | "" |
ntfy.managerInterval | Interval in which the manager prunes old messages | "" |
ntfy.disallowedTopics | Define topic names that are not allowed | [] |
ntfy.webRoot | Define topic names that are not allowed | "" |
ntfy.enableSignup | Allow users to sign up via the web app or API | false |
ntfy.enableLogin | Allow users to sign in via the web app or API | false |
ntfy.enableReservations | Allow users to reserve topics | false |
ntfy.globalTopicLimit | The total number of topics before the server rejects new topics | 15000 |
ntfy.data.rootPath | The root path for ntfy to store its' files | /var/lib/ntfy |
ntfy.data.pvc.size | The size given to the new PVC | 5Gi |
ntfy.data.pvc.storageClass | The storageClass given to the new PVC | standard |
ntfy.data.pvc.reclaimPolicy | The resourcePolicy given to the new PVC | Retain |
ntfy.data.pvc.existingClaim | Provide the name to an existing PVC | "" |
ntfy.cache.file | The path where to create the SQLite cache database, beginning at ntfy.data.rootPath (e.g. "cache.db") | cache.db |
ntfy.cache.duration | The duration for which messages will be buffered before they are deleted (e.g. "12h") | "" |
ntfy.cache.startupQueries | SQLite queries to run on database initialization (e.g. to enable WAL mode) | "" |
ntfy.cache.batchSize | The amount of messages within a single batch (e.g. 32) | 0 |
ntfy.cache.batchTimeout | The timeout after which to write the batched messages to the DB (e.g. "0ms") | "" |
ntfy.auth.file | The path where to create the SQLite user database (e.g. "auth.db") | "" |
ntfy.auth.defaultAccess | The default access level for new users. Can be deny-all, read-only or write-only. | "" |
ntfy.auth.startupQueries | SQLite queries to run on database initialization (e.g. to enable WAL mode) | "" |
ntfy.attachment.cacheDir | The directory for attached files (e.g. "attachments") | "" |
ntfy.attachment.totalSizeLimit | The maximum total size of cacheDir (e.g. "5G") | "" |
ntfy.attachment.fileSizeLimit | The maximum size of a single attachment (e.g. "15M") | "" |
ntfy.attachment.expiryDuration | The duration after which uploaded attachments are deleted (e.g. "3h") | "" |
ntfy.smtp.senderAddr | The hostname:port of the SMTP server (e.g. "mail.example.com:587") | "" |
ntfy.smtp.senderFrom | The e-=mail address of the sender (e.g. "[email protected]") | "" |
ntfy.smtp.senderUser | The username of the SMTP user (e.g. "[email protected]") | "" |
ntfy.smtp.senderPass | The password of the SMTP user (e.g. "[email protected]") | "" |
ntfy.smtp.existingSecret | An existing secret with a username and password key | "" |
ntfy.smtp.incoming.listen | The IP address and port the SMTP server will listen on (e.g. ":25" or "0.0.0.0:25") | "" |
ntfy.smtp.incoming.domain | The email domain (e.g. "example.com") | "" |
ntfy.smtp.incoming.addrPrefix | Optional prefix to prevent spam. If set to "ntfy-" for example, | "" |
ntfy.web.publicKey | is the generated VAPID public key, (e.g. "AA...") | "" |
ntfy.web.privateKey | is the generated VAPID private key, (e.g. "AA...") | "" |
ntfy.web.existingSecret | An existing secret with a privateKey and publicKey a | "" |
ntfy.web.file | is a database file to keep track of browser subscription endpoints (e.g. "/var/cache/ntfy/webpush.db") | "" |
ntfy.web.emailAddress | is the admin email address send to the push provider, (e.g. "[email protected]") | "" |
ntfy.web.startupQueries | SQLite queries to run on database initialization (e.g. to enable WAL mode) | "" |
ntfy.twilio.accountSID | is the Twilio account SID, (e.g. "AC12345beefbeef67890beefbeef122586") | "" |
ntfy.twilio.token | is the Twilio authentication token, (e.g. "ThisIsAnAuthenticationToken") | "" |
ntfy.twilio.existingSecret | An existing secret containing a accountSID and token key | "" |
ntfy.twilio.phoneNumber | The outgoing Twilio phone number (e.g. "+18775132586") | "" |
ntfy.twilio.verifyService | Twilio verify service SID (e.g. "VA12345beefbeef67890beefbeef122586") | "" |
ntfy.upstream.baseURL | The base URL of the upstream server, should be "https://ntfy.sh" | "" |
ntfy.upstream.accessToken | the token used to authenticate with the upstream APNS server | "" |
ntfy.upstream.existingSecret | A existing Secret containing a token key | "" |
ntfy.message.sizeLimit | The maximum size of a message body (e.g. "4k") | "" |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartntfy is pinned at v0.2.2 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