Skip to main content

Kubernetes Host to Pod Synchronization Tool

Project description

Kubesync

Kubesync synchronization tool between kubernetes 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.

asciicast asciicast

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kubesync-0.9b1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distributions

kubesync-0.9b1-py3.7.egg (18.0 kB view details)

Uploaded Source

kubesync-0.9b1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file kubesync-0.9b1.tar.gz.

File metadata

  • Download URL: kubesync-0.9b1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for kubesync-0.9b1.tar.gz
Algorithm Hash digest
SHA256 bdf560f471fa389dee80a50c887dbac9d1aff603d6c8b2e0577e2127ac24f97d
MD5 0bea93746a1e17953825840c1f7f5227
BLAKE2b-256 6d647f19b090d3cc30ddf54d085bd3b67d6ec8a6d7b901b030ffe3499e9824a0

See more details on using hashes here.

File details

Details for the file kubesync-0.9b1-py3.7.egg.

File metadata

  • Download URL: kubesync-0.9b1-py3.7.egg
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for kubesync-0.9b1-py3.7.egg
Algorithm Hash digest
SHA256 460dc5c6553647a054e44d5650d6bf71e980462c9eb2701ea32da1d72d786315
MD5 576e24f4058552651060712e06976442
BLAKE2b-256 931d571203c833beb11ab9e00351763746450942b41166c4cce9ccf22a13c9e1

See more details on using hashes here.

File details

Details for the file kubesync-0.9b1-py3-none-any.whl.

File metadata

  • Download URL: kubesync-0.9b1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for kubesync-0.9b1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5fbbc24e7a10b6d0be913c2650fe298e90c6d37d28d5c16dd90080d09de8f33
MD5 7d9ad8ee1b162729a5db081a8a8de5f1
BLAKE2b-256 f703ccd8ed767aedd4cf0232ce1dfebdec641ad98f2a856e2356302ef0e53340

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page