You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "iJanki-gr (via GitHub)" <gi...@apache.org> on 2023/05/31 10:37:32 UTC

[GitHub] [airflow] iJanki-gr commented on issue #30324: KPO deferrable needs kubernetes_conn_id while non deferrable does not

iJanki-gr commented on issue #30324:
URL: https://github.com/apache/airflow/issues/30324#issuecomment-1569942535

   KPO deferrable still behaves differently from non deferrable.
   
   
   [2023-05-31, 08:17:01 UTC] {taskinstance.py:1824} ERROR - Task failed with exception
   Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.10/site-packages/airflow/providers/cncf/kubernetes/operators/pod.py", line 623, in execute_complete
       raise AirflowException(event["message"])
   airflow.exceptions.AirflowException: Invalid kube-config file. Expected object with name  in kube-config/contexts list
   
   
   I use kubernetes_conn_id=None in KPO and it works fine. I want to workers to just use the kubeconfig in config_file="/home/airflow/.kube/config".
   
   Using kubernetes_conn_id=None with deferrable=true, causes the error above.
   


-- 
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