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
:
syncthing
binary to it’s config directory, ~/.ksync/bin/syncthing
(you should be able to use the latest stable from the project repo )ksync update
checks this repo for the latest release and updates it if found.The remote server portion of ksync
(called radar
) uses a docker image. The nodes in the remote cluster attempt to pull the docker image ksync/ksync
from 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 init
by 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.