Learn KOP - Part 1 - Setup - Rafay Product Documentation

Part 1: Setup Environment

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


What Will You Do

In part 1, you will setup the environment for use within this exercise. You will:

Once this part is complete, you will setup the resources needed to perform backup/restore operations.


Step 1: Download RCTL

The RCTL CLI allows you to programmatically interact with the controller enabling users to construct sophisticated automation workflows.


Step 2: Create Namespace

The test workload you will install will need a namespace. Create a namespace for the workload.


Step 3: Create Workload

You will now create a Wordpress workload using the Catalog. The workload will be used to demonstrate the ability to recover/move the workload with the backup/restore capabilities.

This will deploy the workload on the cluster specified.


Step 4: Verify Workload

Now that the workload has been created, you can validate the workload is running.

kubectl get pod -n wordpress

You should see something like the following:

NAME                        READY   STATUS    RESTARTS   AGE
wordpress-b99c6cbb5-9q66r   1/1     Running   0          3m11s
wordpress-mariadb-0         1/1     Running   0          3m11s

You can also validate the persistent volume claims are bound to the workload.

kubectl get pvc -n wordpress

You should see something like the following:

NAMESPACE   NAME                       STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
wordpress   data-wordpress-mariadb-0   Bound    pvc-dbddd868-ffa5-41a6-a944-13c2ba41f902   8Gi        RWO            gp2            102s
wordpress   wordpress                  Bound    pvc-5a3a71c4-760e-4296-b2b1-33b37fc0943f   10Gi       RWO            gp2            103s

Recap

In this part, you successfully setup RCTL and deployed a Wordpress workload to a cluster using the catalog.