Upload file to openshift pod

1/4/2019

I have license key and I need it to upload to openshift pod, how? It cannot be uploaded to some random server, then to pod. Somehow I need to transfer from my local pc to linux terminal.

-- babboon
kubernetes
openshift

1 Answer

1/4/2019

Try the oc rsync command to copy files. Refer Copying Files to or from a Container .

For example, if the license key file is saved in /path/to/license_dir, the directory is sync with pod target directory.

oc rsync /path/to/license_dir your_pod_name:/tmp/license_dir
-- Daein Park
Source: StackOverflow