Skip to content

Setting in_cluster to True is failing with invalid kube config  #13006

@sakshi-bansal

Description

@sakshi-bansal

Airflow version: 1.10.12

Deploying the example https://github.com/apache/airflow/blob/master/airflow/providers/cncf/kubernetes/example_dags/example_spark_kubernetes.py and

Added parameter in_cluster=True in the dag.

Expected Result:
Dag gets executed and spark application is deployed in the local cluster where airflow is deployed

Actual Result:
Error: {taskinstance.py:1150} ERROR - Invalid kube-config file. No configuration found.

Work-around:
Works after manually adding a kube config in the worker pod.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions