bluerange-mosquitto
by BlueRange
Install BlueRange Mosquitto in your Kubernetes cluster
About this chart
BlueRange Mosquitto
BlueRange redefines the standard of modern real estate and introduces the future of digitized buildings - efficient, intelligent, secure.
Installing
Prerequisites
- Helm v3 installed
Add the chart repository to Helm:
helm repo add bluerange https://bluerange-io.github.io/bluerange-kubernetes/
helm repo update
Deploying BlueRange Mosquitto
helm install bluerange-mosquitto bluerange/bluerange-mosquitto -f my-values.yaml
Environment variables
| Variable | Effect |
|---|---|
BLUERANGE_HOSTNAME | Hostname of the BlueRange backend, replaces auth_opt_http_hostname |
BLUERANGE_PORT | Port of the BlueRange backend, overrides auth_opt_http_port (default 8080) |
BLUERANGE_WITH_TLS | Whether the BlueRange backend is called via https, overrides auth_opt_http_with_tls (default false). Only the exact strings true and false are accepted |
MOSQUITTO_LISTENERS | Which listeners to enable, see below |
MOSQUITTO_MAX_LOGIN_ATTEMPTS | Adds auth_opt_max_login_attempts_per_minute. If unset, the auth plugin uses its own default |
PROMETHEUS_PASSWORD | Password of the prometheus monitoring endpoint |
BLUERANGE_DISABLE_MONITORING | If set to any value, the mqtt monitoring is not started |
Listeners
Four public listeners are prepared and can be enabled via configuration:
| Name | Port | Protocol |
|---|---|---|
| mqtt | 1883 | MQTT |
| mqtts | 8883 | MQTT over SSL |
| ws | 8001 | MQTT over WebSocket |
| wss | 9001 | MQTT over secure WebSocket |
The selection is made with the MOSQUITTO_LISTENERS environment variable, which takes a
space or comma separated list of the names above, e.g. MOSQUITTO_LISTENERS=mqtts,wss.
Two special values exist:
auto(the default) enablesmqttandws, plusmqttsandwssif the server certificate and key have been mounted. This is necessary because mosquitto refuses to start if acertfilepoints to a file that does not exist.noneonly keeps the broker-local listener on 8885 that is used for monitoring.
Contributing
Feel free to contribute to this chart by creating an issue or a pull request. Any support/bug reports/feature requests are welcome.
Deploy bluerange-mosquitto with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has bluerange-mosquitto 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 chartbluerange-mosquitto is pinned at v1.1.0 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