@trym-testing/k8sync

Watch and sync local files to kubernetes pods using watchman and rsync

this version has been deprecated
Last updated 2 years ago by trym .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @trym-testing/k8sync 
SYNC missed versions from official npm registry.

k8sync

Watch and sync local files to kubernetes pods using watchman and rsync.

Heavily inspired by ksync.

Work In Progress

WARNING: Only meant to be used in development clusters - anyone with access to the DaemonSet pods have write access to all overlay2 filesystems, on all cluster nodes.

Getting started

Dependencies

Install k8sync

npm -g install k8sync@beta

Configure k8sync for project

Create a k8sync.yaml in your project root.

namespace: mynamespace
daemonSetNamespace: kube-system

sync:
  api:
    localPath: api
    containerPath: /src
    podSelector:
      labelSelector: 'app=myapp-api'
    excludeDirs:
      - node_modules

  webapp-poller:
    localPath: webapp
    containerPath: /src
    podSelector:
      labelSelector: 'app=myapp-webapp'
    excludeDirs:
      - node_modules

Install cluster-side components

k8sync cluster:init

Watch and sync local files to cluster

k8sync sync

Retart containers while retaining synced files

k8sync restart api

Remove cluster-side components

k8sync cluster:clean

Current Tags

  • 0.0.1-alpha.1                                ...           latest (2 years ago)

3 Versions

  • 0.0.1-alpha.3 [deprecated]           ...           2 years ago
  • 0.0.1-alpha.2 [deprecated]           ...           2 years ago
  • 0.0.1-alpha.1 [deprecated]           ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (11)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |