Pedro Machado

    Pedro Machado

    1 year ago
    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?
    Dylan

    Dylan

    1 year ago
    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
    Pedro Machado

    Pedro Machado

    1 year ago
    Thanks!