added auth and config_dir (#667)

This commit is contained in:
Fabian Zimmermann 2021-03-14 22:41:35 +01:00 committed by GitHub
parent 194990c6c0
commit ab6cbbb1b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 2 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 2.0.7 appVersion: 2.0.7
description: Eclipse Mosquitto - An open source MQTT broker description: Eclipse Mosquitto - An open source MQTT broker
name: mosquitto name: mosquitto
version: 1.2.0 version: 1.3.0
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
keywords: keywords:
- mosquitto - mosquitto

View File

@ -83,11 +83,17 @@ N/A
| persistence.data.enabled | bool | `false` | | | persistence.data.enabled | bool | `false` | |
| persistence.data.mountPath | string | `"/mosquitto/data"` | | | persistence.data.mountPath | string | `"/mosquitto/data"` | |
| persistence.data.size | string | `"100Mi"` | | | persistence.data.size | string | `"100Mi"` | |
| persistence.configinc.accessMode | string | `"ReadWriteOnce"` | |
| persistence.configinc.emptyDir | bool | `false` | |
| persistence.configinc.enabled | bool | `false` | |
| persistence.configinc.mountPath | string | `"/mosquitto/configinc"` | |
| persistence.configinc.size | string | `"100Mi"` | |
| service.annotations | object | `{}` | | | service.annotations | object | `{}` | |
| service.port.name | string | `"mqtt"` | | | service.port.name | string | `"mqtt"` | |
| service.port.port | int | `1883` | | | service.port.port | int | `1883` | |
| service.type | string | `"ClusterIP"` | | | service.type | string | `"ClusterIP"` | |
| strategy.type | string | `"Recreate"` | | | strategy.type | string | `"Recreate"` | |
| auth.enabled | bool | `false` | |
## Changelog ## Changelog

View File

@ -7,9 +7,16 @@ metadata:
data: data:
mosquitto.conf: | mosquitto.conf: |
listener {{ .Values.service.port.port }} listener {{ .Values.service.port.port }}
{{- if .Values.auth.enabled }}
allow_anonymous false
{{- else }}
allow_anonymous true allow_anonymous true
{{- end }}
{{- if .Values.persistence.data.enabled }} {{- if .Values.persistence.data.enabled }}
persistence true persistence true
persistence_location {{ .Values.persistence.data.mountPath }} persistence_location {{ .Values.persistence.data.mountPath }}
autosave_interval 1800 autosave_interval 1800
{{- end }} {{- end }}
{{- if .Values.persistence.configinc.enabled }}
include_dir {{ .Values.persistence.configinc.mountPath }}
{{- end }}

View File

@ -21,6 +21,9 @@ service:
port: 1883 port: 1883
name: mqtt name: mqtt
auth:
enabled: false
persistence: persistence:
data: data:
enabled: false enabled: false
@ -38,3 +41,20 @@ persistence:
## Do not delete the pvc upon helm uninstall ## Do not delete the pvc upon helm uninstall
# skipuninstall: false # skipuninstall: false
# existingClaim: "" # existingClaim: ""
configinc:
# a persistent volume to place *.conf mosquitto-config-files in
enabled: false
emptyDir: false
mountPath: /mosquitto/configinc
## Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
# storageClass: "-"
accessMode: ReadWriteOnce
size: 100Mi
## Do not delete the pvc upon helm uninstall
# skipuninstall: false
# existingClaim: ""