How can I associate a Persistent Volume Claim to Airflow for writing to local file system? #22714
Unanswered
bruciebruce
asked this question in
General
Replies: 1 comment
-
Hi, did you find the answer to this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Question: Where do I couple this claim into the airflow helm chart that I used to deploy airflow?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions