Reputation: 291
I have a strange situation where sometimes a request hits an ingress and sometimes hit another ingress. I know because it comes with a different SSL certificate, and when it happens, there is no log on the ingress.
Is there some way to debug this? Get the logs from the load balancer and see what happens, and which route it takes?
Upvotes: 0
Views: 2622
Reputation: 5625
I've seen this problem happen before and for us it happened when you have more than one ingress controller on the cluster and you don't specify (or incorrectly specify) the ingress class on the ingress.
As a consequence of this, different controllers will "fight" over control of the ingress.
An easy way to check this is simply to run watch kubectl get ingress -n {namespace} {ingress-name}
and see if the external IP of the ingress changes back and forth. If it does, you have an ingress controller conflict.
To add: There were no issues with the loadbalancers in our case.
Upvotes: 0
Reputation: 636
You need to enable the Load balancing logging using this steps.
To view logs
For more and complete guide you can refer on this page.
Upvotes: 1