-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Unnecessary access to v1.Pod lead to timeout. #4955
Comments
I try delete this line (and releated lines). There is no timeout anymore. external-dns/source/service.go Line 78 in 2a45cc8
|
I've seen that this can happen due to permissions: Make sure the account running external-dns is allowed to list pods. |
|
/help |
@ivankatliarchuk: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What happened:
my config:
my k8s cluster has too many pods, and apiserver can NOT return in 60 seconds.
It will error at:
What you expected to happen:
Because I specifiy
source=service
andservice-type-filter=LoadBalancer
, So it should NEVER accecss api tov1.Pod
.But actually,
NewServiceSource
callwaitForCacheSync
which will get all pods regardless ofservice-type-filter
.external-dns/source/service.go
Lines 67 to 113 in 2a45cc8
So it became timeout because of hard code time.
external-dns/source/source.go
Line 356 in 2a45cc8
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
external-dns --version
): v0.14.2** Releated issues**:
The text was updated successfully, but these errors were encountered: