diff --git a/charts/mosquitto/Chart.yaml b/charts/mosquitto/Chart.yaml index 6709cef..a3d8d38 100644 --- a/charts/mosquitto/Chart.yaml +++ b/charts/mosquitto/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: 2.0.18 description: Eclipse Mosquitto MQTT name: mosquitto -version: 0.0.6 +version: 0.0.7 type: application keywords: - mqtt diff --git a/charts/mosquitto/templates/deployment.yaml b/charts/mosquitto/templates/deployment.yaml index 0850828..ec23496 100644 --- a/charts/mosquitto/templates/deployment.yaml +++ b/charts/mosquitto/templates/deployment.yaml @@ -40,28 +40,28 @@ spec: runAsGroup: {{ .Values.securityContext.runAsGrop }} fsGroup: {{ .Values.securityContext.fsGroup }} {{- end }} - # initContainers: - # - name: init-config - # image: busybox - # command: ["/bin/cp", "-v", "/tmp/password_file", "/mosquitto/password_file"] - # securityContext: - # runAsNonRoot: false - # privileged: true - # volumeMounts: - # - name: mosquitto-passwd - # mountPath: /tmp/password_file - # subPath: password_file - # - name: mosquitto-data - # mountPath: /mosquitto - # - name: setup-permissions - # image: busybox - # command: ["/bin/chown", "-R", "1883:1883", "/mosquitto"] - # securityContext: - # runAsUser: 0 - # privileged: true - # volumeMounts: - # - name: mosquitto-data - # mountPath: /mosquitto + initContainers: + - name: init-config + image: busybox + command: ["/bin/cp", "-v", "/tmp/password_file", "/mosquitto/password_file"] + securityContext: + runAsNonRoot: false + privileged: true + volumeMounts: + - name: mosquitto-passwd + mountPath: /tmp/password_file + subPath: password_file + - name: mosquitto-data + mountPath: /mosquitto + - name: setup-permissions + image: busybox + command: ["/bin/chown", "-R", "1883:1883", "/mosquitto"] + securityContext: + runAsUser: 0 + privileged: true + volumeMounts: + - name: mosquitto-data + mountPath: /mosquitto containers: - name: {{ .Chart.Name }} securityContext: