You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "orenl91 (via GitHub)" <gi...@apache.org> on 2023/08/08 20:01:20 UTC

[GitHub] [airflow] orenl91 commented on issue #33184: KubernetesPodOperator does not push XCOM

orenl91 commented on issue #33184:
URL: https://github.com/apache/airflow/issues/33184#issuecomment-1670230629

   Hi @raphaelauv thanks for replying.
   my environment is using apache-airflow-providers-cncf-kubernetes==7.2.0
   here is my code:
   KubernetesPodOperator(
               task_id=pod_id,
               name=pod_id,
               image_pull_policy='Always',
               do_xcom_push=True,
               namespace=namespace,
               get_logs=True,  # Capture logs from the pod
               log_events_on_failure=True,  # Capture and log events in case of pod failure
               is_delete_operator_pod=True, # To clean up the pod after runs
               # config_file parameter - can be skipped if connection contains this setting 
               config_file="/home/airflow/composer_kube_config",
               # definition of connection to be used by the operator
               kubernetes_conn_id='kubernetes_default',   
               image=IMAGE
           )


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org