Helm chartv0.2.2App 2.11.0MIT

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

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.11.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.listenHTTPThe listen address for the HTTP server (e.g. ":80", "127.0.0.1:80")""
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")""
ntfy.certFileThe path to a certificate file (e.g. "/var/lib/ntfy/tls.crt")""
ntfy.firebaseKeyFileThe path to a Firebase key file (e.g. "/var/lib/ntfy/key.json")""
ntfy.behindProxyWhether or not ntfy is hosted behind a proxyfalse
ntfy.keepaliveIntervalInterval in which keepalive messages are sent to the client""
ntfy.managerIntervalInterval in which the manager prunes old messages""
ntfy.disallowedTopicsDefine topic names that are not allowed[]
ntfy.webRootDefine topic names that are not allowed""
ntfy.enableSignupAllow users to sign up via the web app or APIfalse
ntfy.enableLoginAllow users to sign in via the web app or APIfalse
ntfy.enableReservationsAllow users to reserve topicsfalse
ntfy.globalTopicLimitThe total number of topics before the server rejects new topics15000
ntfy.data.rootPathThe root path for ntfy to store its' files/var/lib/ntfy
ntfy.data.pvc.sizeThe size given to the new PVC5Gi
ntfy.data.pvc.storageClassThe storageClass given to the new PVCstandard
ntfy.data.pvc.reclaimPolicyThe resourcePolicy given to the new PVCRetain
ntfy.data.pvc.existingClaimProvide the name to an existing PVC""
ntfy.cache.fileThe path where to create the SQLite cache database, beginning at ntfy.data.rootPath (e.g. "cache.db")cache.db
ntfy.cache.durationThe duration for which messages will be buffered before they are deleted (e.g. "12h")""
ntfy.cache.startupQueriesSQLite queries to run on database initialization (e.g. to enable WAL mode)""
ntfy.cache.batchSizeThe amount of messages within a single batch (e.g. 32)0
ntfy.cache.batchTimeoutThe timeout after which to write the batched messages to the DB (e.g. "0ms")""
ntfy.auth.fileThe path where to create the SQLite user database (e.g. "auth.db")""
ntfy.auth.defaultAccessThe default access level for new users. Can be deny-all, read-only or write-only.""
ntfy.auth.startupQueriesSQLite queries to run on database initialization (e.g. to enable WAL mode)""
ntfy.attachment.cacheDirThe directory for attached files (e.g. "attachments")""
ntfy.attachment.totalSizeLimitThe maximum total size of cacheDir (e.g. "5G")""
ntfy.attachment.fileSizeLimitThe maximum size of a single attachment (e.g. "15M")""
ntfy.attachment.expiryDurationThe duration after which uploaded attachments are deleted (e.g. "3h")""
ntfy.smtp.senderAddrThe hostname:port of the SMTP server (e.g. "mail.example.com:587")""
ntfy.smtp.senderFromThe e-=mail address of the sender (e.g. "[email protected]")""
ntfy.smtp.senderUserThe username of the SMTP user (e.g. "[email protected]")""
ntfy.smtp.senderPassThe password of the SMTP user (e.g. "[email protected]")""
ntfy.smtp.existingSecretAn existing secret with a username and password key""
ntfy.smtp.incoming.listenThe IP address and port the SMTP server will listen on (e.g. ":25" or "0.0.0.0:25")""
ntfy.smtp.incoming.domainThe email domain (e.g. "example.com")""
ntfy.smtp.incoming.addrPrefixOptional prefix to prevent spam. If set to "ntfy-" for example,""
ntfy.web.publicKeyis the generated VAPID public key, (e.g. "AA...")""
ntfy.web.privateKeyis the generated VAPID private key, (e.g. "AA...")""
ntfy.web.existingSecretAn existing secret with a privateKey and publicKey a""
ntfy.web.fileis a database file to keep track of browser subscription endpoints (e.g. "/var/cache/ntfy/webpush.db")""
ntfy.web.emailAddressis the admin email address send to the push provider, (e.g. "[email protected]")""
ntfy.web.startupQueriesSQLite queries to run on database initialization (e.g. to enable WAL mode)""
ntfy.twilio.accountSIDis the Twilio account SID, (e.g. "AC12345beefbeef67890beefbeef122586")""
ntfy.twilio.tokenis the Twilio authentication token, (e.g. "ThisIsAnAuthenticationToken")""
ntfy.twilio.existingSecretAn existing secret containing a accountSID and token key""
ntfy.twilio.phoneNumberThe outgoing Twilio phone number (e.g. "+18775132586")""
ntfy.twilio.verifyServiceTwilio verify service SID (e.g. "VA12345beefbeef67890beefbeef122586")""
ntfy.upstream.baseURLThe base URL of the upstream server, should be "https://ntfy.sh"""
ntfy.upstream.accessTokenthe token used to authenticate with the upstream APNS server""
ntfy.upstream.existingSecretA existing Secret containing a token key""
ntfy.message.sizeLimitThe 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.

  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.2.2 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