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.

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

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.9b2.tar.gz (595.0 kB view details)

Uploaded Source

Built Distributions

kubesync-0.9b2-py3.7.egg (17.9 kB view details)

Uploaded Source

kubesync-0.9b2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kubesync-0.9b2.tar.gz
  • Upload date:
  • Size: 595.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.9b2.tar.gz
Algorithm Hash digest
SHA256 b160ecf1a41b6408c19457b376613510a3171a9ca21258ca7e35860688bbdcbc
MD5 ba6b89adde3a9495b272a0a1d0cd3550
BLAKE2b-256 13e13c9c804980dfff661538c9ab97a96b87919f9d4bb6a1609652512e235368

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kubesync-0.9b2-py3.7.egg
  • Upload date:
  • Size: 17.9 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.9b2-py3.7.egg
Algorithm Hash digest
SHA256 ddef100a94573dd933b96208d7cdfc9bd7a62a8b871f95511c0b93c4045947c8
MD5 9d3b028b3840c197521bcfb86b2dc6e6
BLAKE2b-256 31083b0eb83ec1cb02f085aa8d61ecaa902abdc8ab40afb2b4b6a766fc4b8079

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kubesync-0.9b2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.9b2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf8d7df12ee866c93f072b4d411c4529f26a4dbff61333d41cb1d5a38a6978ee
MD5 9bc11fc4355a283f8cbe567174bafac4
BLAKE2b-256 627c93af4f03926996a9a750ceb67bc2d2224889db07a58846dcf8f7e3ab7758

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