mosquitto

by k8s On Lab

Helm chartv2.7.4App 2.1.4-alpineApache-2.0Verified publisher

Eclipse Mosquitto is an open source message broker which implements MQTT version 5, 3.1.1 and 3.1

About this chart

mosquitto

Eclipse Mosquitto is an open source message broker which implements MQTT version 5, 3.1.1 and 3.1

Install

You can install this chart from the classic Helm repository or from OCI in GHCR.

Helm repository

helm repo add publiccharts https://charts.ar80.eu
helm repo update
helm install my-release publiccharts/mosquitto

OCI registry (GHCR)

helm registry login ghcr.io
helm install my-release oci://ghcr.io/k8sonlab/publiccharts/mosquitto --version <chart-version>

Maintainers

NameEmailUrl
varet80https://github.com/varet80

Values

KeyTypeDefaultDescription
replicaCountint1
strategyTypestring"Recreate"
image.repositorystring"eclipse-mosquitto"
image.tagstringnilImage tag of the container. defaults to chart appVersion
image.pullPolicystring"IfNotPresent"
envobject{}Environment variables for main container
imagePullSecretslist[]
nameOverridestring""
fullnameOverridestring""
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestringnil
service.typestring"ClusterIP"Service type, defaults to ClusterIP
service.externalTrafficPolicystring"Cluster"
service.clusterIpstring""Ability to choose the Service IP (clusterIP)
service.loadBalancerIPstring""
service.annotationsobject{}
ports.mqtt.portint1883
ports.mqtt.protocolstring"TCP"
ports.websocket.portint9090
ports.websocket.protocolstring"TCP"
persistence.enabledbooltrue
persistence.accessModestring"ReadWriteOnce"
persistence.existingClaimstring""
persistence.mountPathstring"/mosquitto/data"
persistence.subPathstring""
persistence.sizestring"1Gi"
resourcesobject{}
podSecurityContextobject{}
securityContextobject{}
probes.liveness.enabledbooltrue
probes.liveness.tcpSocketPortstring"mqtt"
probes.liveness.initialDelaySecondsint5
probes.liveness.periodSecondsint10
probes.liveness.timeoutSecondsint1
probes.liveness.failureThresholdint6
probes.readiness.enabledbooltrue
probes.readiness.tcpSocketPortstring"mqtt"
probes.readiness.initialDelaySecondsint3
probes.readiness.periodSecondsint10
probes.readiness.timeoutSecondsint1
probes.readiness.failureThresholdint3
podAnnotationsobject{}
configMountPathstring"/mosquitto/config/mosquitto.conf"
nodeSelectorobject{}
tolerationslist[]
affinityobject{}
authentication.passwordEntriesstring""
authentication.passwordFilePathstring"/etc/mosquitto/passwordfile"
authorization.aclsstring""
authorization.aclfilePathstring"/etc/mosquitto/aclfile"
existingConfigMapstring""
configstring"persistence true\npersistence_location /mosquitto/data/\nlog_dest stdout\nlistener 1883\nlistener 9090\nprotocol websockets\n"
extraVolumeslist[]
extraVolumeMountslist[]
monitoring.podMonitor.enabledboolfalse
monitoring.podMonitor.namespacestring""
monitoring.podMonitor.labelsobject{}
monitoring.podMonitor.intervalstring"15s"
monitoring.podMonitor.pathstring"/metrics"
monitoring.podMonitor.bearerTokenFilestring""
monitoring.podMonitor.bearerTokenSecretobject{}
monitoring.sidecar.enabledboolfalse
monitoring.sidecar.portint9234
monitoring.sidecar.argslist[]
monitoring.sidecar.envslist[]
monitoring.sidecar.image.repositorystring"nolte/mosquitto-exporter"
monitoring.sidecar.image.tagstring"v0.6.3"
monitoring.sidecar.image.pullPolicystring"IfNotPresent"
monitoring.sidecar.resources.limits.cpustring"300m"
monitoring.sidecar.resources.limits.memorystring"128Mi"
monitoring.sidecar.resources.requests.cpustring"100m"
monitoring.sidecar.resources.requests.memorystring"64Mi"

Deploy mosquitto with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has 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 chartmosquitto is pinned at v2.7.4 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