- There are three modes for synchronization or replication in SWIFT: Passthrough, Stage1, and Stage2.
- SWIFT supports synchronization between Kubernetes clusters, Kubernetes to OpenShift, OpenShift to OpenShift, and OpenShift to Kubernetes, enabling cross-cloud as well as cross-platform/version compatibility.
Passthrough Replication: Passthrough is meant for migration from source to target clusters. It works like a lift-and-shift process, and no storage is required on SWIFT.
Please find below steps to start the Passthrough sync.
1. Before going to do passthrough replication, you should have at least two clusters and image registry added. Please check below snippet for your reference.
#To discover the cluster please follow below KB.
https://rackware.freshdesk.com/a/solutions/articles/5000891147?lang=en
# To adding image registry refer below KB. -: As a SWIFT needs its Transient Rackware Agent Image (TRAI) run on both side of the clusters and TRAI can be uploaded to any registry.
https://rackware.freshdesk.com/a/solutions/articles/5000891144?lang=en
2. Now, we need to navigate to the ‘All Replication’ under ‘Sync administration’ menu and click on ‘New’ button and select ‘Application Replication’ and choose 'Passthrough Replication'. Please find snippet below.
3. Now, we have to select the source and target clusters, and also choose the namespace on the source cluster where your application is running — this is the application you want to migrate to the target cluster. Also, the user can either provide the name of an existing namespace or specify a new name. If a new name is given, that namespace will be created during the sync process on the target cluster.
# Now, in the TRAIPDO section, you can choose either Auto-select Port or specify a Custom Port Range (if you have whitelisted ports between 30000–32767). The selected port will be opened in the cloud firewall accordingly.
# In the TRAIPDO Config section, you will see two options:
1. If you select 'Image and Secret', you will need to provide the image and its corresponding image secret at both sides.
2. If you select 'Image Registry', you can choose an image registry that has already been added to the container registry at the both sides. Please find below snippet for your reference.
4. Now, you can optionally provide a name for the sync operation. This is not mandatory. Then, click the Add button to start the Passthrough replication.
5. Once you click the Add button, the Passthrough replication will start. Please see the snippet below.
6. Once the Passthrough replication finishes, it will look like the example below. Please see the snippet.
7. You can check the target cluster's namespace — you will see that the same application has been replicated there. The application can now be accessed from the target cluster.
# Also you can cross-verify your application you have migrated on the target cluster.