I'm trying to stream logs out of a running pod.
For a pod named 'test' running in the default namespace,
api = client.CoreV1Api()
api.read_namespaced_pod_log("test", "default")
returns the logs so far. But,
api = client.CoreV1Api()
api.read_namespaced_pod_log("test", "default", follow=True)
just never returns. I can't use it with watch.Watch either since that seems to be for a very different purpose.
I'm trying to stream logs out of a running pod.
For a pod named 'test' running in the default namespace,
returns the logs so far. But,
just never returns. I can't use it with
watch.Watcheither since that seems to be for a very different purpose.