Run multiple containers in `KubernetesPodOperator`
See original GitHub issueDescription
The airflow.contrib.operators.kubernetes_pod_operator.KubernetesPodOperator
does not have the possibility to start mutliple containers in the same pod.
Use case / motivation
Useful if one need to start sidecars or external services in the same pod. I am not sure about the API here, should it be possible to provide a list of images and cmds?
Related Issues
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Use the KubernetesPodOperator | Cloud Composer
A common pattern when using the KubernetesPodOperator and the GKEStartPodOperator is to execute a shell script as the container entrypoint to group together ......
Read more >KubernetesPodOperator — apache-airflow-providers-cncf ...
This will create a sidecar container that runs alongside the Pod. The Pod must write the XCom value into this location at the...
Read more >Use the KubernetesPodOperator | Astronomer Documentation
The KubernetesPodOperator (KPO) runs a Docker image in a dedicated Kubernetes Pod. By abstracting calls to the Kubernetes API, the KubernetesPodOperator lets ...
Read more >Airflow kubernetes executor: Run 2 jobs on the same pod
I'm using Airflow with kubernetes executor and the KubernetesPodOperator . I have two jobs: A ...
Read more >Multi-Container Pods in Kubernetes
A Pod is is the smallest deployable unit that can be deployed and managed by Kubernetes. In other words, if you need to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Is this feature available in Airflow 2.0? I add a sidecar container (
fluent-bit
) inpod_template_file
used inKubernetesPodOperator
. However, the POD is always in running mode even thebase
container is finished successfully. I think this is because the sidecar container is still running. Is there a way to fix this issue? Thanks!@everglory99 Maybe Pod Mutation Hook can help?