unifi-network-application

by janip81

Helm chartv0.2.9App 10.3.55Apache-2.0Verified publisher

Helm chart for the UniFi Network Application (WiFi controller)

About this chart

unifi-network-application

Helm chart for the UniFi Network Application (WiFi controller)

Homepage: https://github.com/janip81/helm-charts/tree/main/charts/unifi-network-application

Maintainers

NameEmailUrl
janip81[email protected]https://github.com/janip81

Source Code

Overview

Helm chart for the UniFi Network Application (WiFi controller) using the jacobalberty/unifi image, which bundles MongoDB and the controller in a single container.

Includes:

  • linuxserver/unifi-network-application container (actively maintained, tracks latest UniFi releases)
  • Bundled MongoDB 7.0 deployment (no external database required)
  • A single LoadBalancer service exposing all required ports: HTTPS web UI (8443/TCP), AP device communication (8080/TCP), STUN (3478/UDP), L2 discovery (10001/UDP), speed test (6789/TCP)
  • Init container that waits for MongoDB before starting the controller
  • Optional HTTPRoute for Cilium Gateway API (disabled by default — requires BackendTLSPolicy for HTTPS backend)

Adding this helm repository

To add the helm repository, run the following commands:

helm repo add janip81 https://janip81.github.io/helm-charts/
helm search repo unifi-network-application

values.yaml files for the charts can be found in the charts/[chartname] directories.

TL;DR

helm repo add janip81 https://janip81.github.io/helm-charts/
helm install my-unifi janip81/unifi-network-application -f YOUR-OWN-VALUES.yaml

Helm must be installed to use the charts. Please refer to Helm's documentation to get started.

Prerequisites

  • Kubernetes
  • Helm 3.1.0
  • PV provisioner support in the underlying infrastructure (for persistent storage)
  • LoadBalancer support in the underlying infrastructure (for device communication)

Values

KeyTypeDefaultDescription
affinityobject{}Affinity rules for pod scheduling
env.PGIDstring"1000"Group ID the application runs as
env.PUIDstring"1000"User ID the application runs as
env.TZstring"Europe/Stockholm"Timezone
fullnameOverridestring""Override the full name of all resources. Recommended: set to a short name like "unifi"
httproute.annotationsobject{"argocd.argoproj.io/sync-options":"SkipDryRunOnMissingResource=true"}Annotations for the HTTPRoute
httproute.enabledboolfalseEnable HTTPRoute for the web UI
httproute.gatewayNamestring"internal-shared"Gateway name
httproute.gatewayNamespacestring"kube-system"Gateway namespace
httproute.hostnamestring"unifi.mgmt.threshold.se"Hostname for the HTTPRoute
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"lscr.io/linuxserver/unifi-network-application"Docker registry/repository to pull the image from
image.tagstring"10.3.55"Image tag
mongodb.authobject{"enabled":false,"password":"unifipass","username":"unifi"}MongoDB authentication. Disabled by default (internal cluster service only)
mongodb.auth.enabledboolfalseEnable MongoDB authentication
mongodb.auth.passwordstring"unifipass"MongoDB password (only used when auth.enabled is true)
mongodb.auth.usernamestring"unifi"MongoDB username (only used when auth.enabled is true)
mongodb.image.pullPolicystring"IfNotPresent"Image pull policy
mongodb.image.repositorystring"mongo"MongoDB image repository
mongodb.image.tagstring"7.0"MongoDB image tag. Must be 6.x or 7.x for UniFi 9+
mongodb.persistence.accessModestring"ReadWriteOnce"Access mode for the PVC
mongodb.persistence.enabledbooltrueEnable persistent storage for MongoDB data
mongodb.persistence.sizestring"2Gi"Size of the MongoDB PVC
mongodb.persistence.storageClassstring""Storage class name. Leave empty to use the cluster default
mongodb.resourcesobject{"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"50m","memory":"256Mi"}}MongoDB resource requests and limits
nodeSelectorobject{}Node selector for pod scheduling
persistence.accessModestring"ReadWriteOnce"Access mode for the PVC
persistence.enabledbooltrueEnable persistent storage for UniFi config/data
persistence.sizestring"5Gi"Size of the PVC
persistence.storageClassstring""Storage class name. Leave empty to use the cluster default
podSecurityContextobject{}Pod security context
resourcesobject{"limits":{"cpu":"1000m","memory":"1024Mi"},"requests":{"cpu":"100m","memory":"512Mi"}}Resource requests and limits for the UniFi container
securityContextobject{"allowPrivilegeEscalation":false,"readOnlyRootFilesystem":false,"runAsNonRoot":false}Container security context
service.annotationsobject{}Annotations for the service (e.g. for Cilium IP pool selection)
service.portslist[{"name":"http","port":8443,"protocol":"TCP"},{"name":"controller","port":8080,"protocol":"TCP"},{"name":"stun","port":3478,"protocol":"UDP"},{"name":"discovery","port":10001,"protocol":"UDP"},{"name":"speedtest","port":6789,"protocol":"TCP"}]Ports exposed by the service. 8443/TCP: HTTPS web UI 8080/TCP: AP device communication (inform) 3478/UDP: STUN (required for AP tunnelling and provisioning) 10001/UDP: L2 device discovery (works only on same broadcast domain) 6789/TCP: UniFi mobile speed test (optional)
service.typestring"LoadBalancer"Service type. LoadBalancer exposes all ports (UI + AP device communication)
tls.secretNamestring""Name of the Secret containing the TLS cert for the controller's HTTPS interface. When set, mounts the cert/key into /certs/ and sets CERTFILE/KEYFILE env vars so linuxserver uses your cert instead of the self-signed one. Create the Secret via a cert-manager Certificate resource pointing to letsencrypt-prod.
tolerationslist[]Tolerations for pod scheduling

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy unifi-network-application with OpenTenant

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