Git Product home page Git Product logo

Comments (3)

LamaAni avatar LamaAni commented on June 23, 2024 1

@barloc Actually, that should already be happening, the logging from the pod should be directed to your log files. If you are having issues seeing the logs, there is either a bug in the pod log collector or your airflow implementation.

At this point I will shamelessly plug-in my own airflow plugins,

The logger (https://github.com/LamaAni/AirflowDBLogger) logs to the database instead of files in the airflow task. This removes usually most of the logging issues with airflow.

I also have a full k8s airflow deployment which focuses on Kubernetes. I developed it for easier work with my clients. Its here: https://github.com/LamaAni/zairflow

For any more questions, lets move this to an issue!

from kubernetesjoboperator.

barloc avatar barloc commented on June 23, 2024

Hello
Thanx for your operator, it is very useful in our environment.
But we have a trouble with jobs logs getting because don't have ELK or other logging system for our k8s installation.
How you think it is difficult to get logs from the pod and write it to the airflow task log?

from kubernetesjoboperator.

barloc avatar barloc commented on June 23, 2024

The logger (https://github.com/LamaAni/AirflowDBLogger) logs to the database instead of files in the airflow task. This removes usually most of the logging issues with airflow.

Oh, it is great thing. I try to use it, thank you.

Actually, that should already be happening, the logging from the pod should be directed to your log files. If you are having issues seeing the logs, there is either a bug in the pod log collector or your airflow implementation.

Hmm. I checked it again, but saw only logs of the operator, not pod :( I try to investigate why and return with issue or pr, thank you.

from kubernetesjoboperator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.