-
Notifications
You must be signed in to change notification settings - Fork 170
Open
Labels
Description
Already saw multiple times that the watcher just stops ... without crashing / notifying ...
Idk how to reproduce that, but it happens regularly ... and it does not happen for kube-proxy so either there is a bug in this library or kube-proxy go-lang code has some smart disconnect handling
atm using below and calling .restart every x minutes
class KubernetesWatcher
def initialize(kuber_client, namespace)
@kuber_client = kuber_client
@namespace = namespace
end
def watch(&block)
loop do
@watcher = @kuber_client.watch_endpoints(namespace: @namespace)
@watcher.each(&block)
end
end
def restart
@watcher.finish
end
endidk how to fix/debug this further but wanted to raise awareness.
Reactions are currently unavailable