Open yene opened 5 months ago
This issue is currently awaiting triage.
If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
/remove-kind bug /kind support
I am almost certain that you need to check if both the controllers are different as per this example https://kubernetes.github.io/ingress-nginx/faq/#how-can-i-easily-install-multiple-instances-of-the-ingress-nginx-controller-in-the-same-cluster
@longwuyuan election and controllers are different, everything is already deployed and works.
Just these annoying error messages about validation of unrelated Ingress. Well it is probably helpful for some people, but can it be turned off?
any chance you can show the cluster details in a screenshare ?
In any case I will mark it as a feature-request for this issue.
I tested and I see the message logged, once, at the time of creating a ingress resource, in the logs of the controller that does not own the ingressClass, of the newly created ingress resource.
The controllers watch all ingresses but only process the ingresses that are spec'd out with the ingressClass they own. This message to me is a info level log (need to check the code for exact spot) and there is no feature to optionally enable/disable such info log.
I guess if you are reporting then it must be impacting you but I am not inclined to expect that disabling this log message can be implemented in the near future, due to multiple reasons. Having it tracked here as a feature request seem the appropriate state for now.
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach #ingress-nginx-dev
on Kubernetes Slack.
What happened:
We have two ingress controllers running, each with its own ingressclass. Problem is, they read and try to validate each others ingressclass, which causes multiple different error logs, like
This is dangerous since it shadows real errors and causes alarm fatique.
What you expected to happen:
Each ingress controller only fetches the ingress selected by
--ingress-class=
.NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.): v1.10.0
Kubernetes version (use
kubectl version
): v1.29.2Environment:
Cloud provider or hardware configuration: Azure AKS
How was the ingress-nginx-controller installed: Helm
ingress
error │ W0625 12:40:54.609709 7 controller.go:331] ignoring ingress robotstxt-dummy in default based on annotation : no object matching key "dummy" in local store │ │ I0625 12:40:54.609748 7 main.go:107] "successfully validated configuration, accepting" ingress="default/ingress-dummy"
How to reproduce this issue:
Problem: A will complain about ingress that belong to class B