Merge pull request #900 from simonpasquier/switch-apiv2-alerting

Default alerting to Alertmanager API v2
This commit is contained in:
Paweł Krupa 2021-02-02 09:46:05 +01:00 committed by GitHub
commit 6758acbb30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -251,6 +251,7 @@ function(params) {
namespace: p.config.namespace, namespace: p.config.namespace,
name: 'alertmanager-' + p.config.alertmanagerName, name: 'alertmanager-' + p.config.alertmanagerName,
port: 'web', port: 'web',
apiVersion: 'v2',
}], }],
}, },
securityContext: { securityContext: {

View File

@ -12,7 +12,8 @@ metadata:
spec: spec:
alerting: alerting:
alertmanagers: alertmanagers:
- name: alertmanager-main - apiVersion: v2
name: alertmanager-main
namespace: monitoring namespace: monitoring
port: web port: web
image: quay.io/prometheus/prometheus:v2.24.0 image: quay.io/prometheus/prometheus:v2.24.0