Comment NGINXCertificateExpiry alert label matcher (#10613)
If a valid certificate is passed via `--default-ssl-certificate` it is probably desiderable that we check its expiration! Add a comment to explain that.
This commit is contained in:
parent
30820a5acc
commit
870847ad4c
1 changed files with 5 additions and 0 deletions
|
@ -737,6 +737,11 @@ controller:
|
||||||
# annotations:
|
# annotations:
|
||||||
# description: bad ingress config - nginx config test failed
|
# description: bad ingress config - nginx config test failed
|
||||||
# summary: uninstall the latest ingress changes to allow config reloads to resume
|
# summary: uninstall the latest ingress changes to allow config reloads to resume
|
||||||
|
# # By default a fake self-signed certificate is generated as default and
|
||||||
|
# # it is fine if it expires. If `--default-ssl-certificate` flag is used
|
||||||
|
# # and a valid certificate passed please do not filter for `host` label!
|
||||||
|
# # (i.e. delete `{host!="_"}` so also the default SSL certificate is
|
||||||
|
# # checked for expiration)
|
||||||
# - alert: NGINXCertificateExpiry
|
# - alert: NGINXCertificateExpiry
|
||||||
# expr: (avg(nginx_ingress_controller_ssl_expire_time_seconds{host!="_"}) by (host) - time()) < 604800
|
# expr: (avg(nginx_ingress_controller_ssl_expire_time_seconds{host!="_"}) by (host) - time()) < 604800
|
||||||
# for: 1s
|
# for: 1s
|
||||||
|
|
Loading…
Reference in a new issue