Learn KOP - Part 3 - Sync Workload - Rafay Product Documentation

Part 3: Sync Workload

This is Part 3 of a multi-part, self-paced quick start exercise.


What Will You Do

In part 3, you will test bidirectional syncing of a workload. You will then update the workload manifest in the Git repository and see it automatically applied on the cluster.


Step 1: Update workload From Git

In this step, we will update the workload in the Git repository and then witness the update being applied automatically on the cluster.

The update will trigger the GitOps pipeline and it will automatically update the running workload.

kubectl get po -n nginx

You should see something like the following:

nginx-deployment-6d8787d7d-6jb5p   1/1     Running   0          55m
nginx-deployment-6d8787d7d-dngpw   1/1     Running   0          55m
nginx-deployment-6d8787d7d-dv5bn   1/1     Running   0          73m
nginx-deployment-6d8787d7d-hffp9   1/1     Running   0          55m

Step 2: Update Workload From System

In this step, we will update the workload from the system and then witness the update being applied automatically in the Git repository.

The update will trigger the GitOps pipeline and it will automatically update the workload application spec file in the Git repository.


Recap

In this part, you tested two-way, bidirectional synchronization between the system and your Git repository for workloads.