Skip to content
Snippets Groups Projects
Commit 61be4c99 authored by Edward Welch's avatar Edward Welch Committed by Ed Welch
Browse files

make promtail configmap name configurable

parent 50456f92
No related branches found
No related tags found
No related merge requests found
......@@ -19,5 +19,6 @@
}],
},
promtail_cluster_role_name: 'promtail',
promtail_configmap_name: 'promtail',
},
}
......@@ -63,7 +63,7 @@ k + config + scrape_config {
promtail_daemonset:
daemonSet.new('promtail', [$.promtail_container]) +
daemonSet.mixin.spec.template.spec.withServiceAccount($._config.promtail_cluster_role_name) +
$.util.configVolumeMount('promtail', '/etc/promtail') +
$.util.configVolumeMount($._config.promtail_configmap_name, '/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),
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment