Comments (3)
@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.
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.
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)
- FEATURE: templated specification file / override specific fields HOT 5
- Duplicate pod logs HOT 4
- BUG: Delete pods after job completion HOT 6
- Connection reset by peer on long job run HOT 14
- Get pod logs when multiple containers are used HOT 7
- Executing each task without restarting pods for every task HOT 7
- Is KubernetesJobOperator compatible with Apache Airflow >= v2.0? HOT 10
- FEATURE: Delete all completed tasks, regardless the final result of the task (successful or failed). HOT 24
- Investigate warnings HOT 3
- Secrets not found HOT 1
- FEATURE: Refresh aws token HOT 13
- Error after upgrading to airflow 2.3.3 HOT 2
- Cannot create resource "jobs" HOT 1
- No logs from pod HOT 3
- Any specific setup on kubernetes? HOT 22
- ConnectionResetError: [Errno 104] Connection reset by peer HOT 5
- Running task logs is incomplete HOT 12
- FEATURE: need 'templates_dict' to ensure proper rendering of time macros. HOT 2
- FEATURE: TaskFlow / Decorated Task HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetesjoboperator.