You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/04/04 15:40:29 UTC

[GitHub] [airflow] Vivekdjango edited a comment on issue #13006: Setting in_cluster to True is failing with invalid kube config

Vivekdjango edited a comment on issue #13006:
URL: https://github.com/apache/airflow/issues/13006#issuecomment-813054034


   @mik-laj : I tried but no luck, I created connection with two ways:
   
   1)Conn_ID: <NAME>
      Type:Kubernetes Cluster Connection
      In Cluster Config: Checked
      Kube config (JSON format): {"extra__kubernetes__in_cluster": "True"}
   
   Error:"Invalid connection configuration. Options extra__kubernetes__kube_config_path, "
                   "extra__kubernetes__kube_config, extra__kubernetes__in_cluster are mutually exclusive. "
                   "You can only use one option at a time."
   
   2)Conn_ID: <NAME>
      Type:Kubernetes Cluster Connection
      Kube config (JSON format): {"extra__kubernetes__in_cluster": "True"}
   
   Error: Invalid kube-config file. No configuration found.
   
   Could you please guide where I am doing wrong?
   
   Under Operator I am passing connection as below:
   
   kubernetes_conn_id='NAME',
   
   


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

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