title: `kubectl cp` to a pod is failing because of Permission Denied
body: <p>When I try to copy a small file to a Kubernetes pod, it fails with the following error:</p>
  
  <pre><code>:~ $kubectl cp /tmp/a default/resolver-proxy-69dc786fcf-5rplg:/usr/local/bin/ --no-preserve=true
      tar: a: Cannot open: Permission denied
      tar: Exiting with failure status due to previous errors
      command terminated with exit code 2
  </code></pre>
  
  <p>Could someone please help me how to fix this? I am running Kubernetes on minikube.</p>
  
  <p>I also see another Postgres Pod in a Error state because of similar error:</p>
  
  <pre><code>:~ $kubectl logs postgres-7676967946-7lp9g postgres
  tar: /var/lib/postgresql/data: Cannot open: Permission denied
  tar: Error is not recoverable: exiting now
  </code></pre>