Copy files to and from Kubernetes Container POD

preview_player
Показать описание
#kubernetes #k8s

‘KUBECTL CP’ to Copy the files and directories from a Kubernetes Container [POD] to the local host and vice versa.

Syntax:
kubectl cp (file-spec-src) (file-spec-dest)
POD in a specific container
kubectl cp (file-spec-src) (file-spec-dest) -c (specific-container)

Example-1:
Copy /tmp/foo local file to /tmp/bar in a remote pod in namespace
kubectl cp /tmp/foo (some-namespace)/(some-pod):/tmp/bar

Example-2:
Copy /tmp/foo from a remote pod to /tmp/bar locally
kubectl cp (some-namespace)/(some-pod):/tmp/foo /tmp/bar
Рекомендации по теме
Комментарии
Автор

u just read what was written in document no example no demo? just posting this comment so that anyone coming to this video to not to waste their time

muhammadshahbazbabar
Автор

I was expecting this video to have a demo with some examples instead of just repeating what's in the doc.

sarveshgawas
Автор

Amazing job, searched for hours to find this

johndow
Автор

Thanks for the video, If you have made demo on copying files, that actually helps better

Nani-yikc
Автор

it would have been much helpful if you have shown examples with demo. It worked for me though. Thanks.

nareshravuru
Автор

what's up with the music? can you just turn it OFF!!!!

babicanna
Автор

man provide some examples as well not necessarily command will work in all scenarios

VivekKumar-bbjb
join shbcf.ru