Alvaro Durán Tovar
07/07/2022, 7:33 AMRunNamespacedJob
task. Because of a known bug the way I'm obtaining the logs are via ReadNamespacedPodLogs
. All that working well. Recently I changed the pod spec to run the application as an initContainer
then some docker image to capture results as the actual container
. So I have an image that generates content and logs in the ìnitContainer
and a container
that process the produced content (upload to gcs basically).
Problem: the logs from the initContainer are not being captured by prefect, only the logs from the container. Any recommendation? 🙏:param str container: The container for which to stream logs. Defaults to only container if there is one container in the pod.
Anna Geller
Alvaro Durán Tovar
07/07/2022, 12:02 PMAnna Geller
Alvaro Durán Tovar
07/07/2022, 12:46 PMAnna Geller
ReadNamespacedPodLogs
to specify container names
and for the future, I can imagine integration like this in prefect-kubernetes Collection in 2.0Alvaro Durán Tovar
07/07/2022, 2:59 PMAnna Geller
Alvaro Durán Tovar
07/11/2022, 11:07 AMAnna Geller