From 67f02801b0eb8d604dd04e57efcc87c589a14920 Mon Sep 17 00:00:00 2001 From: Chris Werner Rau Date: Wed, 6 Dec 2023 15:06:59 +0100 Subject: [PATCH] fix(base-cluster/cert-manager): debounce certificate-expiration alert otherwise new certs practically always trigger this alert This still triggers if they fail to get issues after 5 minutes --- .../templates/cert-manager/rules/certificate-expiration.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/base-cluster/templates/cert-manager/rules/certificate-expiration.yaml b/charts/base-cluster/templates/cert-manager/rules/certificate-expiration.yaml index 1144a02d54..c713bf5b0e 100644 --- a/charts/base-cluster/templates/cert-manager/rules/certificate-expiration.yaml +++ b/charts/base-cluster/templates/cert-manager/rules/certificate-expiration.yaml @@ -22,7 +22,7 @@ spec: summary: Certificate is expiring soon. expr: |- certmanager_certificate_expiration_timestamp_seconds and (certmanager_certificate_expiration_timestamp_seconds - time() <= (60 * 60 * 24 * 14)) - for: 1s + for: 15m labels: severity: warning - alert: CertificateExpiringSoon @@ -31,7 +31,7 @@ spec: summary: Certificate is expiring soon. expr: |- certmanager_certificate_expiration_timestamp_seconds and (certmanager_certificate_expiration_timestamp_seconds - time() <= (60 * 60 * 24 * 7)) - for: 1s + for: 15m labels: severity: critical {{- end }}