From 37fd9a6774a190b8f39a57d088afdd3bae0bd361 Mon Sep 17 00:00:00 2001 From: primeroz Date: Fri, 14 Aug 2020 13:13:50 +0200 Subject: [PATCH] Change function for mounting configmap in promtail (#2494) --- production/ksonnet/promtail/promtail.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production/ksonnet/promtail/promtail.libsonnet b/production/ksonnet/promtail/promtail.libsonnet index 6d6c7c70a8427..a0d3a1c74d367 100644 --- a/production/ksonnet/promtail/promtail.libsonnet +++ b/production/ksonnet/promtail/promtail.libsonnet @@ -63,7 +63,7 @@ k + config + scrape_config { promtail_daemonset: daemonSet.new($._config.promtail_pod_name, [$.promtail_container]) + daemonSet.mixin.spec.template.spec.withServiceAccount($._config.promtail_cluster_role_name) + - $.util.configVolumeMount($._config.promtail_configmap_name, '/etc/promtail') + + $.util.configMapVolumeMount($.promtail_config_map, '/etc/promtail') + $.util.hostVolumeMount('varlog', '/var/log', '/var/log') + $.util.hostVolumeMount('varlibdockercontainers', $._config.promtail_config.container_root_path + '/containers', $._config.promtail_config.container_root_path + '/containers', readOnly=true), }