-
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
Not getting debug output for "failed to sync cache: timed out waiting for the condition" errors #1983
Comments
@red8888 are you using cluster roles or not? |
In my RKE2 cluster, I added this to my ClusterRoleBinding and this error went away. apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: external-dns
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: external-dns
subjects:
- kind: ServiceAccount
name: external-dns
namespace: external-dns
# New entry below <----------------------
- kind: ServiceAccount
name: default
namespace: default |
@Raffo, can it at least log what is going wrong somehow, which specific call failed maybe?
The extra note about the namespaces being wrong doesn't apply here, since it's a ClusterRole I'd figure? Perhaps logging the API calls being done when at log-level=debug wouldn't be such a bad suggestion? Especially since the above configuration works on our local test cluster, but not our production cluster, even with @atsai1220's suggestion of adding:
which looks like it shouldn't do much, since I'd hope external-dns to use its configured service account, not the default one. both logs look like this:
one continues with:
the other one continues with:
Considering it's probably #2168 i'm running into, having some more debug logging would probably help? |
I set
--log-level=debug
but the only error I see is "failed to sync cache: timed out waiting for the condition"Looking at the many other issues with this error it might be the cluster role, but I want to know how to turn on debug level logging.
I see
level=debug
in the log output but the only error I see is "failed to sync cache: timed out waiting for the condition"That cant be the debug log level because that error provides no info and I get no other errors explaining what is happening. I'm assuming I have not fully configured debug logging correctly or there is a bug?
The text was updated successfully, but these errors were encountered: