Kubernetes does not show logs for task instances if remote logging is not configured #15179
Labels
affected_version:2.0
Issues Reported for 2.0
area:logging
kind:bug
This is a clearly a bug
provider:cncf-kubernetes
Kubernetes provider related issues
Without configuring remote logging, logs from Kubernetes for task instances are not complete.
Without remote logging configured, the logging for task instances are outputted as :
logging_level: INFO
Apache Airflow version: 2.0.1
Kubernetes version (if you are using kubernetes) (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", GitCommit:"e87da0bd6e03ec3fea7933c4b5263d151aafd07c", GitTreeState:"clean", BuildDate:"2021-02-18T16:12:00Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-21T01:11:42Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Environment:
What happened:
The logs for task instances run are not shown without remote logging configured
What you expected to happen:
I expected to see complete logs for tasks
How to reproduce it:
Start airflow using the helm chart without configuring remote logging.
Run a task and check the logs.
It's necessary to set
delete_worker_pods
to False so you can view the logs after the task has endedThe text was updated successfully, but these errors were encountered: