kubectl Copy directories and files. 30 Sep 2023 · 1 min read · #kubernetes#kubectl#pod 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 ← NewerStartup scripts using "/etc/rc.local" Older →HTTPS Secure Nginx with Let's Encrypt on Debian. You might enjoy Fix Kubernetes ImagePullBackOff "toomanyrequests: You have reached your pull rate limit" Fix kubectl "x509: certificate has expired" on kubeadm clusters Terminating stuck namespaces using kubectl Fix Kubernetes pods restarting with "OOMKilled" (exit code 137) Related notes Fix Kubernetes ImagePullBackOff "toomanyrequests: You have reached your pull rate limit" 11 Nov 2026 · #kubernetes #docker #imagepullsecrets Fix kubectl "x509: certificate has expired" on kubeadm clusters 06 Nov 2026 · #kubernetes #kubeadm #certificates Terminating stuck namespaces using kubectl 27 Mar 2025 · #kubernetes #namespace #kubectl Fix Kubernetes pods restarting with "OOMKilled" (exit code 137) 16 Nov 2026 · #kubernetes #pods #memory