Learn KOP - Workload Update - Rafay Product Documentation

Part 3: Update

This is Part 3 of the exercise that will focus on updating both the YAML and Helm workloads.


What Will You Do

In part 3, you will:


Step 1: Update YAML Workload

In this step, we will update the existing YAML workload through the UI.

  replicas: 2

The workload is now updated on the cluster.

Additionally, you can use the Zero Trust KubeCTL access to check the pod count on the cluster.


Step 2: Update Helm Workload

In this step, we will update the Helm workload in the Git repository and apply the update to the cluster through the UI.

replicaCount: 2

The Helm Values file has now been updated in the Git repository. Next, we will update the workload on the cluster with these changes.

The Helm workload is now unpublished from the cluster

The updated workload is now published on the cluster

Additionally, you can use the Zero Trust KubeCTL access to check the pod count on the cluster.


Step 1: Update YAML Workload

In this step, we will update the existing YAML workload using the RCTL CLI.

  replicas: 2
./rctl update workload yaml-workload-resource.yaml

You will see the YAML workload has been updated and requires republishing

./rctl publish workload yaml-workload

In the web console, you will see the updated workload is now published.

Additionally, you can use the Zero Trust KubeCTL access to check the pod count on the cluster.


Step 2: Update Helm Workload

In this step, we will update the Helm workload in the Git repository and apply the update to the cluster using the RCTL CLI.

replicaCount: 2

The Helm Values file has now been updated in the Git repository. Next, we will update the workload on the cluster with these changes.

./rctl publish workload yaml-workload

In the web console, you will see the updated workload is now published.

Additionally, you can use the Zero Trust KubeCTL access to check the pod count on the cluster.


Recap

Congratulations! You have successfully updated a YAML and a Helm workload.