diff --git a/apps/mqtt/deployment/index.jsonnet b/apps/mqtt/deployment/index.jsonnet index 9c743ebd6..bab7a63f3 100644 --- a/apps/mqtt/deployment/index.jsonnet +++ b/apps/mqtt/deployment/index.jsonnet @@ -23,6 +23,6 @@ local deployment = lib.deployment.new(std.extVar('name'), std.extVar('image'), s + lib.deployment.withVolumeMount(0, k.core.v1.volumeMount.new('mosquitto-config', '/mosquitto/config/mosquitto.conf') + k.core.v1.volumeMount.withSubPath('mosquitto.conf')); local configMap = lib.volume.configMapVolume.new('mosquitto-config', mosquittoConfigMap); -local volume = lib.volume.persistentVolume.new('mosquitto', '5Gi'); +local pvc = lib.volume.persistentVolume.new('mosquitto', '5Gi'); -volume + configMap + std.objectValues(deployment) +pvc + configMap + std.objectValues(deployment)