Skip to content

Commit

Permalink
make promtail configmap name configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
slim-bean authored and Ed Welch committed Sep 13, 2019
1 parent 50456f9 commit 61be4c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions production/ksonnet/promtail/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
}],
},
promtail_cluster_role_name: 'promtail',
promtail_configmap_name: 'promtail',
},
}
2 changes: 1 addition & 1 deletion production/ksonnet/promtail/promtail.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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 comments on commit 61be4c9

Please sign in to comment.