Skip to content

Mounting DAGS from an externally populated PVC doesn't work in K8 Executor #10793

@rchojn

Description

@rchojn

Apache Airflow version: 1.10.12

Kubernetes version (if you are using kubernetes) (use kubectl version): 1.18

What happened: Mounting DAGS from an externally populated PVC doesn't work:

  --set dags.persistence.enabled=true \
  --set dags.persistence.existingClaim=my-volume-claim
  --set dags.gitSync.enabled=false

Envionment variables from K8 Executor worker

│ Environment:
││ AIRFLOW_HOME: /opt/airflow ││ AIRFLOW__CORE__DAGS_FOLDER: /opt/airflow/dags/repo/
││ AIRFLOW__CORE__DAG_CONCURRENCY: 5 │
│ AIRFLOW__CORE__EXECUTOR: LocalExecutor │
│ AIRFLOW__CORE__FERNET_KEY: <set to the key 'fernet-key' in secret 'airflow-fernet-key'> Optional: false │
│ AIRFLOW__CORE__PARALLELISM: 5 │
│ AIRFLOW__CORE__SQL_ALCHEMY_CONN: <set to the key 'connection' in secret 'airflow-airflow-metadata'> Optional: false │
│ AIRFLOW__KUBERNETES__DAGS_VOLUME_SUBPATH: repo/

What you expected to happen: Dags mounted in workers from PVC

How to reproduce it: Use chart from master and set variables as above

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