Skip to main content
Version: 1.15.0

Onboard Namespaces

Namespaces are logical partitions within a Kubernetes cluster that allow you to organize and manage resources. In EGS, namespaces are used to isolate workloads and resources for different users or teams. You can add onboard namespaces from connected clusters onto a workspace.

You can use the namespace added for a workspace if it is already added. To add the namespace for a workspace, see onboard existing namespaces.

Create a Namespace

You can create a namespace in the connected cluster and then onboard it to a workspace.

To create a new namespace for the user by using the following command:

kubectl create ns <namespace>

Example

kubectl create ns peter-workspace

Expected Output

namespace/peter-workspace created

Retrieve the namespace using the following command:

kubectl get ns <namespace>

Example

kubectl get ns peter-workspace

Expected Output

NAME              STATUS   AGE
peter-workspace Active 8s

Onboard Existing Namespaces

To onboard namespaces:

  1. Go to Namespaces on the left sidebar.

    alt

  2. On the Namespaces page, for the workspace that you want to onboard namespaces, click the Add Namespaces icon.

    alt

  3. On the Add Namespaces tab, under All Namespaces click the + sign of each namespace that you want to add. You can also search by namespace or cluster in the search bar.

    alt

  4. The namespaces that you added appear under Selected Namespaces.

  5. Click Save Namespaces.

  6. On the Namespaces page, verify the namespaces that you have onboarded for a workspace.

Offboard Namespaces from a Workspace

  1. Go to Namespaces on the left sidebar.

  2. Select the workspace from which you want to offboard namespaces from, and click the Add Namespaces icon.

  3. On the Add Namespaces tab, under SELECTED NAMESPACES, click the - icon next to a namespace you want to offboard.

  4. Click Save Namespaces to offboard them from its associated workspace.

    info

    While the namespace offboarding is in progress, no operations on the workspace are allowed.