How to copy files recursively to a Kubernetes pod?
kubectl cp by default does recursive copies when given a directory, although it seems to be picky about trailing slashes.  If foo is the directory you'd like to copy, simply run

kubectl cp /path/to/foo &lt;pod-id&gt;:/path/in/container/