bluerange-mosquitto

by BlueRange

Helm chartv1.1.0App 26MITVerified publisher

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

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

VariableEffect
BLUERANGE_HOSTNAMEHostname of the BlueRange backend, replaces auth_opt_http_hostname
BLUERANGE_PORTPort of the BlueRange backend, overrides auth_opt_http_port (default 8080)
BLUERANGE_WITH_TLSWhether 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_LISTENERSWhich listeners to enable, see below
MOSQUITTO_MAX_LOGIN_ATTEMPTSAdds auth_opt_max_login_attempts_per_minute. If unset, the auth plugin uses its own default
PROMETHEUS_PASSWORDPassword of the prometheus monitoring endpoint
BLUERANGE_DISABLE_MONITORINGIf set to any value, the mqtt monitoring is not started

Listeners

Four public listeners are prepared and can be enabled via configuration:

NamePortProtocol
mqtt1883MQTT
mqtts8883MQTT over SSL
ws8001MQTT over WebSocket
wss9001MQTT 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) enables mqtt and ws, plus mqtts and wss if the server certificate and key have been mounted. This is necessary because mosquitto refuses to start if a certfile points to a file that does not exist.
  • none only 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartbluerange-mosquitto is pinned at v1.1.0 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