I have several files named out1, out2, ... in my Kubernetes container. I want to copy them to my local computer. I am using:
$ kubectl cp pod:/path/out* .
But I am getting an error:
tar: Removing leading `/' from member names
tar: /path/out*: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors
error: path/out* no such file or directory
How can I use kubectl cp
with wildcards?