-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Upstream causes endless error logs in gloo container #3761
Comments
w.r.t.
Just tested this on 1.7.0-rc2 open source, as part of #4497 and confirmed that the case is covered. |
Sample upstream to apply and reproduce: apiVersion: gloo.solo.io/v1
kind: Upstream
metadata:
name: bad-upstream
namespace: gloo-system
spec:
kube:
serviceName: doesnotexist
serviceNamespace: default
servicePort: 443 |
One potential idea for a fix is to update the cache eds logic to fire less often here (ignore endpoint updates that don't result in hash differences, just like we do for the snapshot syncing) we could do that here
|
Have a potential fix for k8s to push up, tested on consul and the refresh is a lot more sane. No need to bring the change to other EDS types |
I really like that idea. Have you done any perf testing on that? I think we should test with a very large env before going too far with this |
Describe the bug
When there is an
Upstream
that contains an invalid destination, specifically a missing k8sService
, thegloo
container will endlessly log errors.To Reproduce
Steps to reproduce the behavior:
Upstream
that points to a nonexistentService
gloo
pod and see errors like:Expected behavior
Not endless logs of errors
Additionally, is there a possibility that this scenario could fall under invalid route replacement?
For example if a route references an
Upstream
in the above state, i.e. when a "rejected"Upstream
is used in a route, could it be treated the same as a route to a nonexistentUpstream
?Additional context
Add any other context about the problem here, e.g.
The text was updated successfully, but these errors were encountered: