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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to