bruciebruce opened a new issue, #22715:
URL: https://github.com/apache/airflow/issues/22715

   ### 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:
   
   apiVersion: v1
   kind: PersistentVolume
   metadata:
   name: task-pv-volume
   labels:
   type: local
   spec:
   storageClassName: manual
   capacity:
   storage: 10Gi
   accessModes:
   - ReadWriteMany
   hostPath:
   path: "/mnt/data"
   
   and a persistent volume claim like this:
   
   apiVersion: v1
   kind: PersistentVolumeClaim
   metadata:
   name: task-pv-claim
   spec:
   storageClassName: manual
   accessModes:
   - ReadWriteMany
   resources:
   requests:
   storage: 3Gi
   
   The PV and PVC are created.  Please ignore lack of indentation.
   
   Question: Where do I couple this claim into the airflow helm chart that I 
used to deploy airflow?  I see PVC entries
   for the log and dag section in the Airflow Helm chart, but this is not what 
I need.  I need a generic way to bind an PVC with Airflow in general so I can 
persist files to/from a file system.
   
   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
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to