Skip to content

Kubernetes Pod Operator Init container logging #42498

@johnhoran

Description

@johnhoran

Description

When writing a pod using an init container, I notice that you don't get any logs from the init container. I tried adding the name of the init container to the container_logs option in KubernetesPodOperator, but it complains that the container couldn't be found.
I also noticed that the airflow would say the pod was pending while the init container process was running.

Use case/motivation

  • When init containers are running the task should be consider running.
  • Logs from init containers should be shown

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions