airflow.providers.cncf.kubernetes.utils.xcom_sidecar

Attach a sidecar container that blocks the pod from completing until Airflow pulls result data.

Module Contents

Classes

PodDefaults

Static defaults for Pods.

Functions

add_xcom_sidecar(pod, *[, sidecar_container_image, ...])

Add sidecar.

class airflow.providers.cncf.kubernetes.utils.xcom_sidecar.PodDefaults[source]

Static defaults for Pods.

XCOM_MOUNT_PATH = '/airflow/xcom'[source]
SIDECAR_CONTAINER_NAME = 'airflow-xcom-sidecar'[source]
XCOM_CMD = 'trap "exit 0" INT; while true; do sleep 1; done;'[source]
VOLUME_MOUNT[source]
VOLUME[source]
SIDECAR_CONTAINER[source]
airflow.providers.cncf.kubernetes.utils.xcom_sidecar.add_xcom_sidecar(pod, *, sidecar_container_image=None, sidecar_container_resources=None)[source]

Add sidecar.

Was this entry helpful?