I am trying to copy a local file owned by root to one pod in cert-manager using kubectl cp command as below -
kubectl cp Docker_dbfiles.zip maas-oracle-65df4f64c7-xbn5d:/data01/oracle/oradata -c oracle-docker --namespace=cert-manager
It give the below error -
tar: Docker_dbfiles.zip: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
command terminated with exit code 2
can someone help me here. The file has 777 permissions and owned by root.