Copy a local file into a pod.
Section: Delete, Copy, and Exec
Copy file to pod
bash
bash
kubectl cp ./app.conf payments/web-abc123:/etc/app/app.confExplanation
Copy a local file into a pod.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Delete, Copy, and Exec