Mosquitto MQTT operator for Kubernetes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.


MQTT operator for Kubernetes

Run multiple MQTT instances in your Kubernetes cluster. Can store persistent database.

Build sources

Prebuilt images

You can find images here

Deploy operator


helm repo add 21h
helm repo update
helm install mqtt-operator 21h/mqtt-operator -n operators

Manual install

You can install namespaced or cluster scoped operator.

kubectl -f deploy/service_account.yaml
kubectl -f deploy/role.yaml
kubectl -f deploy/role_binding.yaml
kubectl -f deploy/operator.yaml

Your first MQTT deployment

Look to pkg/apis/blindage/v1alpha1/mqtt_types.go to find more parameters like affinity or annotations.

This resource can help you run your first instance:

kind: MQTT
  name: mymqtt
  autosaveInterval: 600
  autosaveOnChanges: True
  allowAnonymous: False
  persistent: True
  persistentVolumeSize: 1Gi
    myuser: mypassword
    penis: huy2

PVC owned by MQTT resource, so be careful.

Copyright by Vladimir Smagin (21h) 2019 email:
Project page: