unifi

by funkypenguin

Helm chartv5.1.3App v7.4.162Verified publisher

Ubiquiti Network's Unifi Controller

About this chart

unifi

Ubiquiti Network's Unifi Controller

This chart is not maintained by the upstream project and any issues with the chart should be raised here

Source Code

Requirements

Dependencies

RepositoryNameVersion
https://charts.bitnami.com/bitnamimongodb12.1.22
https://library-charts.k8s-at-home.comcommon4.5.2

TL;DR

helm repo add geek-cookbook https://geek-cookbook.github.io/charts/
helm repo update
helm install unifi geek-cookbook/unifi

Installing the Chart

To install the chart with the release name unifi

helm install unifi geek-cookbook/unifi

Uninstalling the Chart

To uninstall the unifi deployment

helm uninstall unifi

The command removes all the Kubernetes components associated with the chart including persistent volumes and deletes the release.

Configuration

Read through the values.yaml file. It has several commented out suggested values. Other values may be used from the values.yaml from the common library.

Specify each parameter using the --set key=value[,key=value] argument to helm install.

helm install unifi \
  --set env.TZ="America/New York" \
    geek-cookbook/unifi

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.

helm install unifi geek-cookbook/unifi -f values.yaml

Custom configuration

Running with separate MongoDB

By default the Unifi controller runs an internal MongoDB. If you wish to run the chart with a separate MongoDB instance our chart provides the option to enable a MongoDB instance by adding the following in your values.yaml:

mongodb:
  enabled: true

(For more configuration options see the mongodb chart documentation.)

If you do not specify any other configuration, the required environment variables will be inferred automatically. It is also possible to override the environment variables to configure the image. See here for more details.

Regarding the services

By default it is not possible to combine TCP and UDP ports on a service with type: LoadBalancer. This can be solved in a number of ways:

  1. Create a separate service containing the UDP ports. This could be done by setting disabling the UDP ports under service.main.ports and adding the following in your values.yaml:
service:
  udp:
    enabled: true
    type: LoadBalancer
    # <your other service configuration>
    ports:
      stun:
        enabled: true
        port: 3478
        protocol: UDP
      syslog:
        enabled: true
        port: 5514
        protocol: UDP
      discovery:
        enabled: true
        port: 10001
        protocol: UDP
  1. Since Kubernetes 1.20 there is a feature gate that can be enabled to allow TCP and UDP ports to coexist on Services with type: Loadbalancer. You will need to enable the MixedProtocolLBService feature gate in order to achieve this.

    For more information about feature gates, please see the docs.

Values

Important: When deploying an application Helm chart you can add more values from our common library chart here

KeyTypeDefaultDescription
envobjectSee belowenvironment variables. See more environment variables in the image documentation.
env.JVM_INIT_HEAP_SIZEstringnilJava Virtual Machine (JVM) initial, and minimum, heap size Unset value means there is no lower limit
env.JVM_MAX_HEAP_SIZEstring"1024M"Java Virtual Machine (JVM) maximum heap size For larger installations a larger value is recommended. For memory constrained system this value can be lowered.
env.RUNAS_UID0string"false"Run UniFi as root
env.TZstring"UTC"Set the container timezone
env.UNIFI_GIDstring"999"Specify the group ID the application will run as
env.UNIFI_UIDstring"999"Specify the user ID the application will run as
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"jacobalberty/unifi"image repository
image.tagstringnil
ingress.mainobjectSee values.yamlEnable and configure ingress settings for the chart under this key.
ingress.portalobjectSee values.yamlEnable and configure settings for the captive portal ingress under this key.
mongodbobjectSee values.yamlEnable and configure mongodb database subchart under this key. For more options see mongodb chart documentation
persistenceobjectSee values.yamlConfigure persistence settings for the chart under this key.
podSecurityContextobjectSee belowpod security context.
serviceobjectSee values.yamlConfigures service settings for the chart.
service.main.ports.controllerobjectSee values.yamlConfigure Controller port used for device command/control
service.main.ports.discoveryobjectSee values.yamlConfigure device discovery port
service.main.ports.httpobjectSee values.yamlConfigure Web interface + API port
service.main.ports.portal-httpobjectSee values.yamlConfigure Captive Portal HTTP port
service.main.ports.portal-httpsobjectSee values.yamlConfigure Captive Portal HTTPS port
service.main.ports.speedtestobjectSee values.yamlConfigure Speedtest port (used for UniFi mobile speed test)
service.main.ports.stunobjectSee values.yamlConfigure STUN port
service.main.ports.syslogobjectSee values.yamlConfigure remote syslog port

Changelog

Version 5.1.2

Added

N/A

Changed

  • Upgraded common chart dependency to version 4.5.2

Fixed

N/A

Older versions

A historical overview of changes can be found on ArtifactHUB

Support


Autogenerated from chart metadata using helm-docs v0.1.1

Deploy unifi with OpenTenant

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