Unable to use “oc rsync” and “oc cp” commands to copy files/directories by one user, while another one – successful.
Error: tar not available in container
Both users have access permissions:
“oc auth can-i create pods/rsync” – yes
“oc auth can-i create pods/cp” – yes
But only one account can perform operation with similar files.
I’m trying to use these commands:
- oc login –server=”<OKD_URL>” –username=”” –password=”” –kubeconfig=”” –insecure-skip-tls-verify -n “”
- oc cp ./directory/file <POD_NAME>:/directory –kubeconfig “” -n “”
- oc rsync ./directory/file <POD_NAME>:/directory –strategy=’tar’ –kubeconfig “” -n “”
I’m expecting successful copying of files from local directory to pod.
Maybe there are another ways?