We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What happened:
my config:
--source=service --service-type-filter=LoadBalancer
my k8s cluster has too many pods, and apiserver can NOT return in 60 seconds.
It will error at:
time="2024-12-16T12:43:02Z" level=info msg="Created Kubernetes client https://10.0.0.1:443" time="2024-12-16T12:44:02Z" level=fatal msg="failed to sync *v1.Pod: context deadline exceeded"
What you expected to happen:
Because I specifiy source=service and service-type-filter=LoadBalancer, So it should NEVER accecss api to v1.Pod.
source=service
service-type-filter=LoadBalancer
v1.Pod
But actually, NewServiceSource call waitForCacheSync which will get all pods regardless of service-type-filter.
NewServiceSource
waitForCacheSync
service-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
** Releated issues**:
The text was updated successfully, but these errors were encountered:
I try delete this line (and releated lines). There is no timeout anymore.
Line 78 in 2a45cc8
Sorry, something went wrong.
I've seen that this can happen due to permissions: #4960
Make sure the account running external-dns is allowed to list pods.
@dmarkhas
--service-type-filter=LoadBalancer
No branches or pull requests
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: