Not all metrics are deleted after removing ingress object from kubernetes cluster #10825
Labels
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
needs-kind
Indicates a PR lacks a `kind/foo` label and requires one.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened:
After creating ingress object added host metrics with status="404" and with empty ingress and namespace labels.
After removing this ingress object such metrics not being deleted
What you expected to happen:
Ingress controller ignore metric event from new host until nginx config reload complete.
NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.): v1.9.3
Kubernetes version (use
kubectl version
): v1.27.5Environment:
Cloud provider or hardware configuration: baremetal
OS (e.g. from /etc/os-release): Ubuntu 20.04.5 LTS
Kernel (e.g.
uname -a
): 5.15.0-43-genericHow was the ingress-nginx-controller installed: Kubespray
How to reproduce this issue:
Anything else we need to know:
In very large environments during nginx config reload process ingress controller exposes metrics with status="404" label and
empty namespace="" and ingress="" labels what causes that such metrics cat not be deleted.
The text was updated successfully, but these errors were encountered: