Skip to content

How do I specify a Persistent Claim reference for an AirFlow worker pod to persist a file that is not a Dag or Log. #22715

@bruciebruce

Description

@bruciebruce

Official Helm Chart version

1.5.0 (latest released)

Apache Airflow version

2.2.4 (latest released)

Kubernetes Version

Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.7+rke2r2", GitCommit:"b56e432f2191419647a6a13b9f5867801850f969", GitTreeState:"clean", BuildDate:"2022-03-04T23:17:38Z", GoVersion:"go1.16.14b7", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.7+rke2r2", GitCommit:"b56e432f2191419647a6a13b9f5867801850f969", GitTreeState:"clean", BuildDate:"2022-03-04T23:17:38Z", GoVersion:"go1.16.14b7", Compiler:"gc", Platform:"linux/amd64"}

Helm Chart configuration

No response

Docker Image customisations

No response

What happened

I have spun up a local RKE2 cluster using Helm charts for most pods and would like to have some Python Airflow Dags persist data to the local file system.

I have created a persistent volume like this:

volume

and a persistent volume claim like this:

claim

The PV and PVC are created.

$ kubectl get pv
pv

$ kubectl get pvc
claim

Question: I see that you can configure the web and worker section of the airflow yaml to persist into the dag and log directories. This is not what I want. I would like to persist files into a directory, like in the above mountPoint /mnt/data

Thank you

What you think should happen instead

No response

How to reproduce

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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