How to upload huge files to Ceph/GlsuterFS through openshift/k8s PVC

3/30/2018

Now I wanna run a machine learning pod in openshift, but I need to upload some data like training set to the pod, and better to the PV when considering persistence. Is there some apis helpful on this?

-- 白栋天
ceph
glusterfs
kubernetes
openshift

1 Answer

3/30/2018

Attach PV to pod. Then you you can use kubectl cp.

For example kubectl cp /tmp/foo_dir <some-pod>:/your_pv/bar_dir

/your_pv should be specified in Pods spec.volumeMounts to use your PVC.

-- Maciek Sawicki
Source: StackOverflow