unifi

by k8s On Lab

Helm chartv0.3.7App v10.0.162Apache-2.0Verified publisher

Unifi chart for Kubernetes

About this chart

unifi

Unifi chart for Kubernetes

Homepage: https://github.com/k8sonlab/publiccharts/tree/main/charts/unifi

Install

You can install this chart from the classic Helm repository or from OCI in GHCR.

Helm repository

helm repo add publiccharts https://charts.ar80.eu
helm repo update
helm install my-release publiccharts/unifi

OCI registry (GHCR)

helm registry login ghcr.io
helm install my-release oci://ghcr.io/k8sonlab/publiccharts/unifi --version <chart-version>

Maintainers

NameEmailUrl
varet80https://github.com/varet80

Values

KeyTypeDefaultDescription
replicaCountint1
image.repositorystring"jacobalberty/unifi"set image: use the truecharts image
image.pullPolicystring"IfNotPresent"
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]
nameOverridestring""
fullnameOverridestring""
upgradeStrategystring"Recreate"Upgrade strategy set to recreate (no support for multiple pods)
serviceAccount.createbooltrue
serviceAccount.annotationsobject{}
serviceAccount.namestring""
podAnnotationsobject{}
podSecurityContextobject{}
securityContextobject{}
healthchecksobject{"livenessProbe":{"failureThreshold":5,"httpGet":{"path":"/manage/account/login","port":8443,"scheme":"HTTPS"},"initialDelaySeconds":45,"periodSeconds":15,"successThreshold":1,"timeoutSeconds":2},"readinessProbe":{"failureThreshold":3,"httpGet":{"path":"/manage/account/login","port":8443,"scheme":"HTTPS"},"initialDelaySeconds":10,"periodSeconds":15,"successThreshold":1,"timeoutSeconds":2},"startupProbe":{"failureThreshold":20,"httpGet":{"path":"/manage/account/login","port":8443,"scheme":"HTTPS"},"initialDelaySeconds":45,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":2}}Setup liveness probes for deployment
serviceobject{"port":8443,"type":"ClusterIP"}the main Service (used for ingress)
serviceAPobject{"annotations":{},"ports":{"controller":{"number":8080,"protocol":"TCP"},"discovery":{"number":10001,"protocol":"TCP"},"stun":{"number":3478,"protocol":"UDP"}},"type":"LoadBalancer"}Requires load balancer, to expose the Unifi stun and discovery
httpRoute.enabledboolfalseEnable an HTTPRoute resource for nextcloud .
httpRoute.apiVersionstring"gateway.networking.k8s.io/v1"Set the route apiVersion
httpRoute.kindstring"HTTPRoute"Set the route kind
httpRoute.annotationsobject{}Route annotations
httpRoute.labelsobject{}Route labels
httpRoute.hostnameslist[]Route hostnames
httpRoute.parentRefslist[]Reference to parent gateways
httpRoute.rules[0].matches[0].path.typestring"PathPrefix"
httpRoute.rules[0].matches[0].path.valuestring"/"
gatewayBackend.enabledbooltrue
gatewayBackend.apiVersionstring"gateway.envoyproxy.io/v1alpha1"
gatewayBackend.kindstring"Backend"
gatewayBackend.spec.tls.insecureSkipVerifybooltrue
ingressobject{"annotations":{},"className":"","enabled":false,"hosts":[],"tls":[]}Ingress
resourcesobject{}proposed resources set under this config
nodeSelectorobject{}
tolerationslist[]
affinityobject{}
environmentVarsobject{"S6_READ_ONLY_ROOT":"1","TZ":"UTC","UMASK":"2","UMASK_SET":"2"}deployment environment vars (key,value style)
configVolumeobject{"accessModes":["ReadWriteOnce"],"size":"10Gi","storageClassName":""}configVolume
configVolume.accessModeslist["ReadWriteOnce"]Access mode for volumes
configVolume.sizestring"10Gi"Size of volume

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 v0.3.7 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