Closed stanvv closed 1 year ago
@stanvv I think you are confusing the logs which are persisted under /opt/airflow/logs/
(which are from the airflow application itself), with the Kubernetes logs (which are from the Pod's STDOUT and STDERR).
If you want to persist the Pod logs, you might struggle to keep them ALSO accessible within Kubernetes, but some possible approaches are:
This issue has been automatically marked as stale because it has not had activity in 60 days. It will be closed in 7 days if no further activity occurs.
Thank you for your contributions.
Issues never become stale if any of the following is true:
lifecycle/frozen
label
Checks
User-Community Airflow Helm Chart
.Chart Version
8.6.1
Kubernetes Version
Helm Version
Description
We're trying to collect all logging of our airflow pods for future analysis. For this, we included
logs.persistence.enabled=true
in our helm command and updated ourhelm-values.yaml
(see relevant settings below at Custom Helm Values)This leads to pod logging being written to
/opt/airflow/logs/..
which is mounted to a PV (Azure File Share). So far so good!However, when we run
kubectl logs airflow-web -n airflow
, we see a whole bunch of logs that we don't see in any of our log files in our PV. Please find the example below at Revelant LogsHow can we write those logs to a path?
Relevant Logs
Custom Helm Values