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
When I checked in k8s, the container was already terminated so I am assuming the failure is because I asked for the logs before the container was created? I am not sure how to tell the library to block the log call until the container is running. Or maybe log_streamdoes not work with init containers?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I have a situation where a pod is created and I need to fetch the logs of an init container. I followed your example and got something like this:
And I get an error like
When I checked in k8s, the container was already terminated so I am assuming the failure is because I asked for the logs before the container was created? I am not sure how to tell the library to block the log call until the container is running. Or maybe
log_stream
does not work with init containers?Any advice?
thank you very much
Beta Was this translation helpful? Give feedback.
All reactions