Skip to content

Commit

Permalink
Mount overrides configmap to alertmanager too
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <[email protected]>
  • Loading branch information
pracucci committed May 27, 2021
1 parent 70a50df commit 93cadfa
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 93cadfa

Please sign in to comment.