| Crates.io | kube-copy |
| lib.rs | kube-copy |
| version | 0.1.0 |
| created_at | 2025-11-06 12:14:17.778333+00 |
| updated_at | 2025-11-06 12:14:17.778333+00 |
| description | A lightweight CLI utility to automatically synchronize local files into Kubernetes pods |
| homepage | |
| repository | https://github.com/mallowigi/kube-copy |
| max_upload_size | |
| id | 1919527 |
| size | 80,255 |
kube-copy is a lightweight CLI utility to automatically synchronize local files into Kubernetes pods using kubectl cp. It watches your file system and Kubernetes pod lifecycle, keeping your app files up to date in development environments.
Ready)touch a file or trigger reload)cargo build --release
cp target/release/kube-copy /usr/local/bin
watcher.json[
{
"name": "sync-common",
"kube_context": "minikube",
"namespace": "default",
"label_selectors": ["app=my-app"],
"paths": [
{ "src": "./local/path", "dest": "/app/dest" }
],
"post_sync_command": "touch /app/.reload"
}
]
post_sync_command (optional)If provided, this shell command is executed inside each pod via kubectl exec after each successful sync.
Use it to:
nodemon)kube-copy --config watcher.json
| Option | Description |
|---|---|
--config |
Path to config file (default: watcher.json) |
--sync-on-start |
Trigger sync to all ready pods at startup |
notify to track file changeskube + kube-runtime to track pod eventskubectl cp to sync file/directoryReady before syncingpost_sync_command in pod via kubectl execThis tool is ideal for:
ksync, telepresence, or skaffold?Those tools are powerful, but often:
kube-copy is zero-cluster-dependency: it's just you, your files, and your pods.
MIT ยฉ 2025 Dmitry Rusov