babboon
babboon

Reputation: 793

Upload file to openshift pod

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.

Upvotes: 0

Views: 6315

Answers (1)

Daein Park
Daein Park

Reputation: 4703

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

Upvotes: 1

Related Questions