Hi there. I am working on a project where we might...
# ask-community
p
Hi there. I am working on a project where we might use kubernetes to execute flows. I don't have much experience with Kubernetes, but I've used the
KubernetesPodOperator
in Airflow and one thing I noticed is that it that you can't see the logs until the task ends. How does logging work in Prefect when you use kubernetes? Are logs streamed to prefect cloud in real time?
d
Hey @Pedro Machado! Logs are streamed in realtime, just like with the rest of Prefect’s configured environments for Prefect Cloud 👍
Take a look at the Kubernetes Agent and the Kubernetes Run Config as two good places to get started: *https://docs.prefect.io/orchestration/flow_config/run_configs.html#kubernetesrun *https://docs.prefect.io/orchestration/agents/kubernetes.html
p
Thanks!
hattip 1