Quantcast
Channel: Copy multiple files using * wildcard from kubernetes container - DevOps Stack Exchange
Browsing latest articles
Browse All 6 View Live

Answer by Eduardo Baitello for Copy multiple files using * wildcard from...

Wildcard support was added to kubectl cp in the #72641 pull request.It is merged but only available in Kubernetes v1.14.0. Take a look at the ChangeLog:Notable Features:[...]• kubectl supports copying...

View Article



Answer by cookiedough for Copy multiple files using * wildcard from...

You can do that using this command:kubectl cp -n [NAMESPACE] [POD_NAME]:/[POD_DIRECTORY]/. .

View Article

Copy multiple files using * wildcard from kubernetes container

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...

View Article

Answer by ljs.dev for Copy multiple files using * wildcard from kubernetes...

As there is no wildcard support, a workaround is to do a 2-step process to achieve the same:kubectl exec ... to do make a new tmp directory and wildcard copy/move your desired transfer files into that...

View Article

Answer by W Goldfarb for Copy multiple files using * wildcard from kubernetes...

I had a similar requirement and finally settled on:mkdir /my/dest/dirkubectl exec $TARGET_POD -n MYNAMESPACE -- tar -zcvf - -C /my/src/directory . | tar -zxvf - -C /my/dest/dirThis depends on 'tar'...

View Article


Answer by Pankaj Yadav for Copy multiple files using * wildcard from...

For everyone's benefit, I am pasting working code as suggested by heyjared user on https://github.com/kubernetes/kubernetes/issues/78854Use find with xargs as a workaround:find . | xargs -i{} kubectl...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images