Hi. I want to attach an existing PVC to my Flow. H...
# ask-metaflow
b
Hi. I want to attach an existing PVC to my Flow. How do I do that? Some background: we have a few hundred TB of training data in an existing volume and we've set it up as a PVC. Our regular pods can access that. I want the pods created by Metaflow in Argo to have access to those. Correct me if I'm wrong, but the resources tag creates the volume and the PVC, which I don't want. I just want to use an existing one. Currently, if I create my pod separately, it would look like this:
Copy code
kind: Pod
apiVersion: v1
metadata:
  name: my-app-rahul
spec:
  containers:
    - name: my-busybox
      image: busybox
      volumeMounts:
      - mountPath: "/mnt/provider/rahul"
        name: my-volume
      command: ["/bin/sh"]
      args: ["-c", "ls /mnt/provider/rahul"]
  volumes:
    - name: my-provider-volume
      persistentVolumeClaim:
        claimName: provider-pvc-rahul
u
Metaflow doesn't support attaching existing volumes with
@kubernetes
yet. See this issue.
b
😮 Alright, this might end up being a huge blocker for us. 😕 I'll need to figure out contingency.
Thanks for the late response @User
a
👀
b
yesterday's release enables this use case: https://github.com/Netflix/metaflow/releases/tag/2.8.6
🙌 1