This doc describes the process of adding automatic syncing. Automatic Syncing allows Koncrete to automatically sync the cluster to a desired deployment configuration after new commits are made to a git repository (git push results in the cluster immediately syncing).

This process is illustrated in the diagram below.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/3ec5c663-8ce2-4af8-b0fd-4dac85ff4fe5/Auto_Sync_(1).svg

Create an Application with Automatic Sync Selected

First, create an application on the Koncrete dashboard using the ADD APPLICATION button.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/49e9411c-b521-423a-bfdd-3aa1be1b80e6/Untitled.png

Input the application's details, then under Advanced Options change the Sync Policy to Automatic Sync

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8f425a4d-efa6-4785-9cba-6e65a2cb2a34/Untitled.png

Click the ADD APPLICATION button to complete the application creation process. This will generate a new application within Koncrete that periodically syncs the target cluster to the deployment configurations specified within the path directory.

Anytime a change is detected in the deployment config directory, it will automatically sync these changes to the target cluster. By default, Koncrete will check the directory for updates every 3 minutes.

Adding Instant Syncing After Commits

Waiting for the periodic checks is not always ideal. Developers often like to see their changes sync immediately after committing code. This is achieved through webhooks which are added through the Add Repository section of Koncrete.

Start by clicking the ADD REPO button from the Koncrete Overview Dashboard.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/3d2b4bde-01d2-4593-8c2c-a94a78f4402a/Untitled.png

Follow the steps to connect Koncrete with a Git Provider, then pick the repository corresponding with the application created in the previous step.

Click ADD REPOSITORY to complete the process.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/9c545143-c0b4-4667-8416-c35b1d0a9859/Untitled.png

That's it! Test automatic syncing by making an update to the Git Repository. As soon as the change is triggered, Koncrete should pick up the modification and begin to sync the cluster accordingly.