Developer builds kubectl plugin to bring rsync's incremental sync to Kubernetes pods
A developer has created a kubectl plugin called kubectl-rsync that enables rsync-style incremental file transfers between a local machine and Kubernetes pods. The tool was built to address the inefficiency of kubectl cp, which transfers all files every time rather than only changed ones. It works by using rsync's -e option to route connections through a custom shell script that calls kubectl exec, effectively bridging rsync with Kubernetes pod access. The plugin supports rsync features such as compression, progress reporting, and partial transfers while reusing existing kubectl authentication. It is open source and can be installed via the Krew plugin manager using kubectl krew install rsync.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in