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