-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[receiver/k8sobjectsreceiver] watcher not restarting when kubernetes hangs up. #18078
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hey, @atoulme and @stokerjon I faced the same issue, and I'm available to help with that fix. I'm not sure how to force reproduce that issue, do you know how we can simulate this behavior? |
No idea. Maybe create a mock k8s object api and restart it? |
Setting a short timeoutSeconds in ListOptions for the watch should have the same affect. |
I managed it! |
Thanks @nicolastakashi |
Component(s)
receiver/k8sobjects
What happened?
Description
Kubernetes periodically hangs up watch connections, the receiver does not then restart them.
Steps to Reproduce
Create a k8sobjectsreceiver watching for kubernetes events.
Expected Result
k8sobjectsreceiver will continue watching for events and when kubernetes hangs up restart the watch
Actual Result
Kubernetes hangs up k8sobjectsreceiver watch. but does not restart
Collector version
0.68.0
Environment information
Environment
OS: Amazon Linux
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: