kubectl Copy directories and files.
Posted on Sat 30 September 2023 in misc
Copy local file to a specific pod in specific namespace
kubectl cp /tmp/foo "namespace"/"pod_name":/tmp/bar
Copy file from specific pod in specific namespace to a local directory
kubectl cp "namespace"/"pod_name":/tmp/foo /tmp/bar