Skip to content

Commit ccff10a

Browse files
Merge pull request #78 from JacekZubielik/mosquitto
build(mosquitto): 0.0.2
2 parents cf77440 + f56ac87 commit ccff10a

2 files changed

Lines changed: 21 additions & 7 deletions

File tree

charts/mosquitto/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: 2.0.18
33
description: Eclipse Mosquitto MQTT
44
name: mosquitto
5-
version: 0.0.1
5+
version: 0.0.2
66
type: application
77
keywords:
88
- mqtt

charts/mosquitto/templates/deployment.yaml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,22 +107,27 @@ spec:
107107
- name: mosquitto-conf
108108
mountPath: /mosquitto/config/mosquitto.conf
109109
subPath: mosquitto.conf
110+
readOnly: true
110111
- name: mosquitto-passwd
111112
mountPath: /mosquitto/password_file
112113
subPath: password_file
114+
readOnly: true
113115
- name: mosquitto-ca-cert
114116
mountPath: /mosquitto/config/certs/ca.crt
115117
subPath: ca.crt
118+
readOnly: true
116119
- name: mosquitto-server-cert
117120
mountPath: /mosquitto/config/certs/server.crt
118121
subPath: server.crt
122+
readOnly: true
119123
- name: mosquitto-server-key
120124
mountPath: /mosquitto/config/certs/server.key
121125
subPath: server.key
122126
readOnly: true
123127
- name: mosquitto-data
124128
mountPath: /mosquitto
125129
subPath: mosquitto
130+
readOnly: true
126131
resources:
127132
{{- toYaml .Values.resources | nindent 12 }}
128133
volumes:
@@ -137,14 +142,23 @@ spec:
137142
configMap:
138143
name: {{ include "app.fullname" . }}
139144
- name: mosquitto-ca-cert
140-
secret:
141-
secretName: mosquitto-ca-cert
145+
configMap:
146+
name: {{ include "app.fullname" . }}-certs
147+
items:
148+
- key: ca.crt
149+
path: ca.crt
142150
- name: mosquitto-server-cert
143-
secret:
144-
secretName: mosquitto-server-cert
151+
configMap:
152+
name: {{ include "app.fullname" . }}-certs
153+
items:
154+
- key: server.crt
155+
path: server.crt
145156
- name: mosquitto-server-key
146-
secret:
147-
secretName: mosquitto-server-key
157+
configMap:
158+
name: {{ include "app.fullname" . }}-certs
159+
items:
160+
- key: server.key
161+
path: server.key
148162
- name: mosquitto-data
149163
{{- if .Values.persistence.enabled }}
150164
persistentVolumeClaim:

0 commit comments

Comments
 (0)