title: How can a file inside a pod be copied to the outside?
body: <p>I have an audit pod, which has logic to generate a report file. Currently, this file is present in the pod itself. I have only one pod having only one replica.</p>
  <p>I know, I can run <code>kubectl cp</code> to copy those files from my pod. This command has to be executed on the Kubernetes node itself, but the task is to copy the file from the pod itself due to many restrictions.</p>
  <p>I cannot use a Persistent Volume due to restrictions. I checked the Kubernetes API, but couldn't find anything by which I can do a copy.</p>
  <p>Is there another way to copy that file out of the pod?</p>