Skip to content

Commit

Permalink
Merge pull request grafana/cortex-jsonnet#315 from grafana/add-runtim…
Browse files Browse the repository at this point in the history
…e-config-support-to-alertmanager

Mount overrides configmap to alertmanager too
  • Loading branch information
pracucci authored May 27, 2021
2 parents 70a50df + 93cadfa commit 6d491bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions operations/mimir/alertmanager.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
{
target: 'alertmanager',
'log.level': 'debug',
'runtime-config.file': '/etc/cortex/overrides.yaml',
'experimental.alertmanager.enable-api': 'true',
'alertmanager.storage.path': '/data',
'alertmanager.web.external-url': '%s/alertmanager' % $._config.external_url,
Expand Down Expand Up @@ -87,6 +88,7 @@
statefulSet.mixin.spec.template.spec.securityContext.withRunAsUser(0) +
statefulSet.mixin.spec.updateStrategy.withType('RollingUpdate') +
statefulSet.mixin.spec.template.spec.withTerminationGracePeriodSeconds(900) +
$.util.configVolumeMount($._config.overrides_configmap, '/etc/cortex') +
statefulSet.mixin.spec.template.spec.withVolumesMixin(
if hasFallbackConfig then
[volume.fromConfigMap('alertmanager-fallback-config', 'alertmanager-fallback-config')]
Expand Down

0 comments on commit 6d491bf

Please sign in to comment.