How do I get a file from a one-off process in Kubernetes? How do I get a file from a one-off process in Kubernetes? kubernetes kubernetes

How do I get a file from a one-off process in Kubernetes?


I have a requirement not to use kubectl exec, because the cluster settings do not allow it.

Without the kubectl exec command, I can suggest to do it that way:

  1. Run your test as a Job inside a cluster.
  2. Use shared volume like NFS or SMB to store your file.
  3. Get files from the shared volume, which you can mount to your build system.

Also, many build systems have an Artifacts storage, and it can be the best option to store test results.