Connector Syncs
Syncs rely on kubernetes cluster to run jobs.
This doc is just a proof-of-concept: In the presence of kubernetes cluster, it is not recommended to run Jitsu in Docker Compose. Instead, running all Jitsu components in kubernetes cluster is preferable.
How to set up
Jitsu runs sync jobs in kubernetes cluster. So we need to connect syncctl service to kubernetes cluster using following env variables in .env file:
SYNCS_ENABLED- set totrueto enable syncs on UI sideSYNCCTL_KUBERNETES_CLIENT_CONFIG- path to kubernetes config file or kubernetes config in yaml formatEXTERNAL_POSTGRES_HOST- host ofpostgresservice as it is reachable from kubernetes cluster
How to run
Minikube example
Pre-requisites
Start minikube
minikube startSet kubernetes config
kubectl config view --raw=true --minify=true --flatten=trueCopy and paste the config payload to SYNCCTL_KUBERNETES_CLIENT_CONFIG env variable in .env file (keep indentation intact: use line break after opening quotation marks symbol)
Adjust .env config
- Set
EXTERNAL_POSTGRES_HOSTto:host.minikube.internalas it is how these services will be reachable from minikube - Set
SYNCS_ENABLEDtotrue
Start Jitsu
docker compose upKeep in mind that minikube choose random port each time it starts. So you need to update server port in config each time you restart minikube.