简体   繁体   English

如何通过openshift / k8s PVC将大文件上传到Ceph / GlsuterFS

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

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. 现在我想在openshift上运行一个机器学习Pod,但是我需要将一些数据(如训练集)上载到Pod,考虑持久性时最好上载到PV。 Is there some apis helpful on this? 有一些API对此有帮助吗?

Attach PV to pod. 将PV连接到吊舱。 Then you you can use kubectl cp . 然后,您可以使用kubectl cp

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

/your_pv should be specified in Pods spec.volumeMounts to use your PVC. /your_pv应该在Pods spec.volumeMounts中指定以使用您的PVC。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM