Running a MQTT broker is a common requirement for home automation. Will try to create a recipe for Eclipse-Mosquitto based onthis forum hint Any other hint is very welcome
The problem with StatefullSet is the k8s scheduler wont restart Mosquitto on a node crash until it comes back online or is deleted. That's bad for high availability. With a Deployment, the Pod is recreated quickly. Having the right strategy type will prevent rollout issues of concurrent reque...
I was using k8s config maps and there one has a directory to be mounted, hence the target should be a directory as well. So /mosquitto/config/ instead of /mosquitto/config/mosquitto.conf however for you in docker your command should work as long as the conf file really exists....