unifi-controller
by jespernohr
A Helm Chart for deploying a UniFi controller to Kubernetes
About this chart
Unifi Controller Helm Chart
The UniFi Controller helm chart installs a unifi controller software onto your kubernetes cluster. A Kubernetes cluster (k3s, kind, K8s, or anything else) is required. For exposing the ports, MetalLB or any other LoadBalancer implementation is required.
Controller ports
The following is a list of ports that are used by the unifi controller. The ports are exposed by a MetalLB service to be discoverable in your network.
| Protocol | Port | Purpose |
|---|---|---|
| UDP | 3478 | Port used for STUN. |
| UDP | 5514 | Port used for remote syslog capture |
| TCP | 8080 | Port used for device and application communication |
| TCP | 8443 | Port used for application GUI/API as seen in a web browser |
| TCP | 8880 | Port used for HTTP portal redirection |
| TCP | 8843 | Port used for HTTPS portal redirection |
| TCP | 6789 | Port used for UniFi mobile speed test |
| TCP | 27117 | Port used for local-bound database communication |
| UDP | 5656-5699 | Ports used by AP-EDU broadcasting |
| UDP | 10001 | Port used for device discovery |
| UDP | 1900 | Port used for "Make application discoverable on L2 network" in the UniFi Network settings |
Further reading
- The original chart from Lukas Bahr: https://github.com/lukibahr/unifi-controller-helm-chart
- Releaser action used for releasing the charts: https://github.com/helm/chart-releaser-action
- The image used from linuxserver.io: https://hub.docker.com/r/linuxserver/unifi-controller
- Unifi controller ports: https://help.ui.com/hc/en-us/articles/218506997-UniFi-Ports-Used
Deploy unifi-controller with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has unifi-controller 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 chartunifi-controller is pinned at v2.3.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