You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following messages look pretty common during Beyla startup.
time=2024-11-11T16:47:47.838Z level=INFO msg="waiting for K8s metadata synchronization" component=kube.CacheSvcClient timeout=30s
time=2024-11-11T16:48:07.850Z level=INFO msg="K8s cache service connection lost. Reconnecting..." component=kube.CacheSvcClient error="could not subscribe: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 10.189.58.80:50055: i/o timeout\""
time=2024-11-11T16:48:17.839Z level=WARN msg="timed out while waiting for K8s metadata synchronization. Some metadata might be temporarily missing. If this is expected due to the size of your cluster, you might want to increase the timeout via the BEYLA_KUBE_INFORMERS_SYNC_TIMEOUT configuration option" component=kube.CacheSvcClient
time=2024-11-11T16:48:17.846Z level=INFO msg="Flows agent successfully started" component=agent.Flows
The cause is that, since both the cache service and beyla are deployed at the same time, it might happen that Beyla tries to connect before the service is up and running.
There are two possible solutions:
In the Beyla code, keep waiting during the startup time until the Beyla cache instance is reachable.
Make sure that Beyla is deployed only when the cache service is healthy. I don't know if Kubernetes provides some mechanisms for it, similar to what docker-compose allows.
The text was updated successfully, but these errors were encountered:
In regards to option 2, I am not aware of a Kubernetes mechanism that allows you to 'delay' the deployment of a component based on the health of another, e.g. having the Beyla DaemonSet only deployed when the cache service is up and healthy even if you apply the manifests at the same time. Helm also does not provide a mechanism like that.
Therefore I think only option 1 is viable. Maybe the timeout for waiting for the cache to become available could be made configurable?
The following messages look pretty common during Beyla startup.
The cause is that, since both the cache service and beyla are deployed at the same time, it might happen that Beyla tries to connect before the service is up and running.
There are two possible solutions:
The text was updated successfully, but these errors were encountered: