unifi
Ubiquiti Network's Unifi Controller
About this chart
Ubiquiti Network's Unifi Controller
This is a helm chart for [Ubiquiti Network's][ubnt] [Unifi Controller][ubnt 2].
TL;DR;
helm install <helm-repo>/unifi
helm install stable/unifi
Introduction
This code is adopted from [this original repo][github].
Installing the Chart
To install the chart with the release name my-release:
helm install --name my-release <helm-repo>/unifi
helm install --name my-release stable/unifi
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm delete my-release --purge
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following tables lists the configurable parameters of the Unifi chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.repository | Image repository | jacobalberty/unifi |
image.tag | Image tag. Possible values listed [here][docker]. | 5.9.29 |
image.pullPolicy | Image pull policy | IfNotPresent |
strategyType | Specifies the strategy used to replace old Pods by new ones | Recreate |
guiService.type | Kubernetes service type for the Unifi GUI | ClusterIP |
guiService.port | Kubernetes port where the Unifi GUI is exposed | 8443 |
guiService.annotations | Service annotations for the Unifi GUI | {} |
guiService.labels | Custom labels | {} |
guiService.loadBalancerIP | Loadbalance IP for the Unifi GUI | {} |
guiService.loadBalancerSourceRanges | List of IP CIDRs allowed access to load balancer (if supported) | None |
guiService.externalTrafficPolicy | Set the externalTrafficPolicy in the Service to either Cluster or Local | Cluster |
controllerService.type | Kubernetes service type for the Unifi Controller communication | NodePort |
controllerService.port | Kubernetes port where the Unifi Controller is exposed - this needs to be reachable by the unifi devices on the network | 8080 |
controllerService.annotations | Service annotations for the Unifi Controller | {} |
controllerService.labels | Custom labels | {} |
controllerService.loadBalancerIP | Loadbalance IP for the Unifi Controller | {} |
controllerService.loadBalancerSourceRanges | List of IP CIDRs allowed access to load balancer (if supported) | None |
controllerService.externalTrafficPolicy | Set the externalTrafficPolicy in the Service to either Cluster or Local | Cluster |
stunService.type | Kubernetes service type for the Unifi STUN | NodePort |
stunService.port | Kubernetes UDP port where the Unifi STUN is exposed | 3478 |
stunService.annotations | Service annotations for the Unifi STUN | {} |
stunService.labels | Custom labels | {} |
stunService.loadBalancerIP | Loadbalance IP for the Unifi STUN | {} |
stunService.loadBalancerSourceRanges | List of IP CIDRs allowed access to load balancer (if supported) | None |
stunService.externalTrafficPolicy | Set the externalTrafficPolicy in the Service to either Cluster or Local | Cluster |
discoveryService.type | Kubernetes service type for AP discovery | NodePort |
discoveryService.port | Kubernetes UDP port for AP discovery | 10001 |
discoveryService.annotations | Service annotations for AP discovery | {} |
discoveryService.labels | Custom labels | {} |
discoveryService.loadBalancerIP | Loadbalance IP for AP discovery | {} |
discoveryService.loadBalancerSourceRanges | List of IP CIDRs allowed access to load balancer (if supported) | None |
discoveryService.externalTrafficPolicy | Set the externalTrafficPolicy in the Service to either Cluster or Local | Cluster |
unifiedService.enabled | Use a single service for GUI, controller, STUN, and discovery | false |
unifiedService.type | Kubernetes service type for the unified service | ClusterIP |
unifiedService.annotations | Annotations for the unified service | {} |
unifiedService.labels | Custom labels for the unified service | {} |
unifiedService.loadBalancerIP | Load balancer IP for the unified service | None |
unifiedService.loadBalancerSourceRanges | List of IP CIDRs allowed access to the load balancer (if supported) | None |
unifiedService.externalTrafficPolicy | Set the externalTrafficPolicy in the service to either Cluster or Local | Cluster |
ingress.enabled | Enables Ingress | false |
ingress.annotations | Ingress annotations | {} |
ingress.labels | Custom labels | {} |
ingress.path | Ingress path | / |
ingress.hosts | Ingress accepted hostnames | chart-example.local |
ingress.tls | Ingress TLS configuration | [] |
timezone | Timezone the Unifi controller should run as, e.g. 'America/New York' | UTC |
runAsRoot | Run the controller as UID0 (root user); if set to false, will give container SETFCAP instead | false |
UID | Run the controller as user UID | 999 |
GID | Run the controller as group GID | 999 |
mongodb.enabled | Use external MongoDB for data storage | false |
mongodb.dbUri | external MongoDB URI | mongodb://mongo/unifi |
mongodb.statDbUri | external MongoDB statdb URI | mongodb://mongo/unifi_stat |
mongodb.databaseName | external MongoDB database name | unifi |
persistence.enabled | Use persistent volume to store data | true |
persistence.size | Size of persistent volume claim | 5Gi |
persistence.existingClaim | Use an existing PVC to persist data | nil |
persistence.storageClass | Type of persistent volume claim | - |
persistence.accessModes | Persistence access modes | [] |
resources | CPU/Memory resource requests/limits | {} |
nodeSelector | Node labels for pod assignment | {} |
tolerations | Toleration labels for pod assignment | [] |
affinity | Affinity settings for pod assignment | {} |
podAnnotations | Key-value pairs to add as pod annotations | {} |
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,
Spe
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartunifi is pinned at v0.4.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