We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2bb1e34 + ffc9be9 commit ce1ab51Copy full SHA for ce1ab51
prometheus-ksonnet/lib/alertmanager.libsonnet
@@ -150,6 +150,9 @@
150
], self.alertmanager_pvc) +
151
statefulset.mixin.spec.withServiceName('alertmanager') +
152
statefulset.mixin.spec.template.metadata.withAnnotations({ 'prometheus.io.path': '%smetrics' % $._config.alertmanager_path }) +
153
+ statefulset.mixin.spec.template.spec.securityContext.withFsGroup(2000) +
154
+ statefulset.mixin.spec.template.spec.securityContext.withRunAsUser(1000) +
155
+ statefulset.mixin.spec.template.spec.securityContext.withRunAsNonRoot(true) +
156
$.util.configVolumeMount('alertmanager-config', '/etc/alertmanager/config') +
157
$.util.podPriority('critical')
158
else {},
0 commit comments