Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Kubesync

Kubesync synchronization tool between kubernetes pods or pods and your host.

Install

From Pypi

The script is available on PyPI. To install with pip:

pip install kubesync

From Source Code

git clone https://github.com/ahmetkotan/kubesync
cd kubesync
python setup.py build
python setup.py install

Usage

First, you must start watcher with kubesync watch command and then create selectors with kubesync create command.
If you want to ignoring some directory or files, create .kubesyncignore file like .gitignore in source path.

Demo

kubesync-watcher kubesync-tool

Watch

Start watching for real-time synchronizations.
kubesync watch --help

  • --pid-file Watcher PID save to where if you want keep pid, otherwise save to ~/.kubesync/kubesync.pid file.
kubesync watch --pid-file=kubesync.pid

Create

Create real-time synchronization.
kubesync create --help

  • -l, --selector Pod label selector parameter
  • -c, --container Pod container name
  • -s, --src Source path from your host
  • -d, --dest Destination path from pod container
  • -n, --name Synchronization name. This is not required. This will be created automatically if you don't define it.
kubesync create --selector=app=kubesync-example -c nginx -s $(pwd)/examples/nginx-app/html\
 -d /usr/share/nginx/html/ --name example

Sync

Use sync if you want to once move your files to pod container. This doesn't work as real-time. It moves files and shuts.
kubesync sync --help

  • -l, --selector Pod label selector parameter
  • -c, --container Pod container name
  • -s, --src Source path from your host
  • -d, --dest Destination path from pod container
kubesync sync --selector=app=kubesync-example -c nginx -s $(pwd)/examples/nginx-app/html\
 -d /usr/share/nginx/html/

Clone

Use clone If you want to reverse synchronization. It's mean, this container path synchronizations to your host path.
kubesync clone --help

  • -l, --selector Pod label selector parameter
  • -c, --container Pod container name
  • -s, --src Source path from your host
  • -d, --dest Destination path from pod container
kubesync clone --selector=app=kubesync-example -c nginx -s $(pwd)/examples/nginx-app/html\
 -d /usr/share/nginx/html/

Get

Get your all synchronization configurations.

kubesync get

Delete

Delete your synchronization configuration.
kubesync delete --help

kubesync delete example

Clean

Delete all your synchronization configurations.

kubesync clean

Release files for kubesync 0.9b3.post2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kubesync 0.9b3.post2
File Size Uploaded
kubesync-0.9b3.post2.tar.gz 595.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kubesync 0.9b3.post2
File Interpreter ABI Platform
kubesync-0.9b3.post2-py3-none-any.whl Python 3 none any Details

Total release size: 604.7 kB

Release files / kubesync-0.9b3.post2.tar.gz

Download URL kubesync-0.9b3.post2.tar.gz
Size 595.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c0644c9d636185f9c70c1c1892bcef59ca2c828b0c75f4b189252c6d79954695
BLAKE2b-256 checksum
How to use checksums
c946d7dcf95756e6c79e47039ca00f18848303dff8e153c2cff59a46c2a1a122
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

Release files / kubesync-0.9b3.post2-py3-none-any.whl

Download URL kubesync-0.9b3.post2-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69bba84d65e75f675dd1ac0f5e38534b1cee3dfbcefb666527a593281583aa9b
BLAKE2b-256 checksum
How to use checksums
0db709aebe31b8fce053f401194307c4fcf3e089d9c0573db0fadeb1291aa1a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page