Unifi for Kubernetes permit the creation of a container runnning Unifi Network Controller for ARM cpu (raspberry pi 3) and the creation of a kubernetes deployment based on that image.
Before building the image, go https://www.ui.com/download/unifi to get the latest Unifi Network Controller version number and set it up in the Dockerfile
$ vi Dockerfile
$ docker build .
Unifi Network Controller requires persistent storage. In the files, I create a persistent storage on host pi3-slave-02 in directory /unifi so modify 02-unifi-pv.yaml accordingly.
Please note the deployment file 04-unifi-deploy.yaml does use hostNetwork: true [ I never managed to make it work otherwise (discovery was not working) ]
The ingress of my cluster is Traefik so make sure to use the same ( with https configured ) or to update the ingress 06-unifi-ing.yaml accordingly ( of course change the ingress alias unifi.k8s.synology.me
).
To deploy:
$ kubectl apply -f kubernetes/