Learn KOP - Manage Namespaces - Rafay Product Documentation

Part 2: Manage

This is Part 2 of the exercise that will focus on managing namespaces that were created outside of the controller.


What Will You Do

In part 2, you will:


Step 1: Update Blueprint

In this step, we will create a new version for our previously created blueprint.

You will now see the new version.


Step 2: Apply Blueprint

In this step, we will apply the new blueprint version to the cluster.

The blueprint version will begin to be applied to the cluster.

The updated blueprint version is now applied to the cluster.


Step 3: Manage Namespaces from KUBECTL

In this step, we will attempt to remove the previously created namespaces from the cluster by using KUBECTL.

First, we will verify that both of the previously created namespaces are synchronized and managed by the controller.

Next, we will attempt to delete the namespaces through KUBECTL.

kubectl delete namespaces kubectl-ns

You will see that the namespace cannot be deleted outside of the controller now that it is managed by the controller.


Step 4: Manage Namespaces from Controller

In this step, we will attempt to remove the previously created namespaces through the controller.

You will see that the namespace has been removed from the controller.

kubectl get namespaces

You will see that the namespace has been removed from the cluster.


Recap

Congratulations! You have successfully set up a cluster blueprint with namespace synchronization and managed namespaces that were created outside of the controller.