Skip to content

Commit

Permalink
allow configuration of secrets for alertmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
roelandvanbatenburg committed Aug 28, 2023
1 parent 84c295f commit 293d7ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jsonnet/kube-prometheus/components/alertmanager.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ local defaults = {
],
},
replicas: 3,
secrets: [],
mixin:: {
ruleLabels: {},
_config: {
Expand Down Expand Up @@ -225,6 +226,7 @@ function(params) {
},
resources: am._config.resources,
nodeSelector: { 'kubernetes.io/os': 'linux' },
secrets: am._config.secrets,
serviceAccountName: am.serviceAccount.metadata.name,
securityContext: {
runAsUser: 1000,
Expand Down
1 change: 1 addition & 0 deletions manifests/alertmanager-alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
requests:
cpu: 4m
memory: 100Mi
secrets: []
securityContext:
fsGroup: 2000
runAsNonRoot: true
Expand Down

0 comments on commit 293d7ad

Please sign in to comment.