Ignore fake certificate for NGINXCertificateExpiry (#10694)

The fake certificate is only a fallback and it is okay-ish if it
expires.

Do not alert for its expiration.

Co-authored-by: Leonardo Taccari <leonardo@faire.ai>
This commit is contained in:
k8s-infra-cherrypick-robot 2023-11-29 09:03:10 -08:00 committed by GitHub
parent 7764e00ab4
commit aa3609046b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -736,7 +736,7 @@ controller:
# # (i.e. delete `{host!="_"}` so also the default SSL certificate is
# # checked for expiration)
# - alert: NGINXCertificateExpiry
# expr: (avg(nginx_ingress_controller_ssl_expire_time_seconds) by (host) - time()) < 604800
# expr: (avg(nginx_ingress_controller_ssl_expire_time_seconds{host!="_"}) by (host) - time()) < 604800
# for: 1s
# labels:
# severity: critical