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?
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.