I'm trying to run the image in k8s but can't get it to work with permanent storage. As long as I don't define a persistent volume it works as intended. When I define a hostpath volume for the /config directory the controller process refuses all connections. The pod creates three directories in the mounted hostvolume: data, logs and run. The data directory contains a binary file named keystore, the others are empty.
Inside the pod there's a java process running using the user abc 911:911 and command, java -Xmx1024M -jar /usr/lib/unifi/lib/ace.jar
The unifi service is not running. No sign of any mongodb process or service.
I'm not sure how to troubleshoot this. Any pointers are appreciated. It's obviously related to the storage.