Learn KOP - Create Namespaces - Rafay Product Documentation

Part 1: Create

This is Part 1 of the exercise that will focus on creating namespaces both inside and outside of the controller.


What Will You Do

In part 1, you will:


Step 1: Create Blueprint

In this step, we will create a custom blueprint based off the "minimal" blueprint.

Next, create a blueprint version for this custom blueprint.

The blueprint and version will be created.


Step 2: Apply Blueprint

In this step, we will apply the blueprint to an existing cluster.

The blueprint will begin to be applied to the cluster.

The blueprint is now applied to the cluster.


Step 3: Create Namespace Inside Controller

In this step, we will create a namespace through the UI from the controller. This namespace will be fully managed by the controller.

The namespace is now published on the cluster.


Step 4: Create Namespace Outside Controller

In this step, we will create a namespace through KUBECTL outside of the controller. This namespace will NOT be managed by the controller because it was not created by the controller nor have we enabled namespace synchronization within the blueprint.

kubectl create namespace kubectl-ns

You will see the namespace created on the cluster.

kubectl get namespace

In the console, you will not see the namespace as it is not managed by the controller.

The newly created namespace is not listed.


Recap

Congratulations! At this point, you have successfully deployed a blueprint and created a namespace both inside and outside of the controller.