Home > database >  What would be the best way to copy large file from local system to a pod in kubernetes
What would be the best way to copy large file from local system to a pod in kubernetes

Time:11-06

I have a large file of around 350GB that need to be copied to the pod with PV, I have been trying to use kubectl cp but after all the tries I haven't been able to copy the whole file. Is there a better way to copy the file?

Note: Kubernetes Cluster and Local System on which the files exist are on the same network in a cloud environment.

The error I am getting: client_loop: send disconnect: Broken pipe

CodePudding user response:

...350GB that need to be copied to the pod with PV

How about create a PV that already loaded with the 350GB data? In this case all your pod needs is just the PVC.

CodePudding user response:

By using PVC (persistent volume claim) you can copy the large number of volume data to your pods.

A persistent volume claim is a dedicated storage that kubernetes has carved out for your application pod, from the storage that was made available using the storage class. you can refer this link .

  • Related