While ksync is primarily intended for scenarios with access to the internet, it can be used in a disconnected ("offline") state, where only access to the cluster is available.
In order to download required components, ksync does require internet access on initial setup. There are two ways to get around this, either you can download the components individually and place them in the correct locations, or you can run init when connected to the internet, then move offline (with one exception).
Here are the components retrieved during init:
- The local binary downloads the
syncthingbinary to it's config directory,~/.ksync/bin/syncthing(you should be able to use the latest stable from the project repo ) ksync updatechecks this repo for the latest release and updates it if found.
-
The remote server portion of
ksync(calledradar) uses a docker image. The nodes in the remote cluster attempt to pull the docker imageksync/ksyncfrom Docker Hub. The tag matches the release version. You can pull this image into your cluster's image registry manually. -
You can also specify a different image to use when running
initby supplying the flag--image=my-repo/ksync:tag.
Once all components are in place ksync should function normally. Some commands (such as update) will not function as they require internet access.