Onboard Namespaces
You can add onboard namespaces from connected clusters onto a slice workspace.
If you have added the namespace for a slice workspace, use that namespace. You can use the namespace added for a slice workspace. To add the namespace for a slice workspace, see onboard existing namespaces.
Otherwise, create a new namespace for the user by using the following command:
kubectl create ns <>
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:
-
Go to Namespaces on the left sidebar.
-
(Optional) Expand the dropdown menu of each slice workspace to see the clusters, deployment location, and cloud type.
-
On the Manage Namespaces page, select the slice workspace that you want to add namespaces to.
-
Click Add Namespaces.
-
On the Step 1 - Add Namespaces tab, select namespace(s) that you want to add, which appear under Selected Namespaces. You can also search by namespace or cluster in the search bar. On the search bar, click the search by namespace to see the search by cluster option.
-
Click Add to slice.
-
On the Step 2- Generate YAML and Apply tab, towards the bottom of the page, under Code Preview, review the YAML file that contains the namespaces that you have just added under
namespaceIsolationProfile
. -
Click Apply YAML.
-
On the Step 3 - Finalize tab, in case if you want to see the namespaces, click View all for the slice workspace.
-
Click Done.
-
On the Namespaces, click View all for the slice workspace to verify the namespaces that you have onboarded.
Offboard Namespaces from a Workspace
To offboard namespaces from a slice workspace:
-
Go to Namespaces on the left sidebar.
-
Select the slice workspace from which you want to offboard namespaces from, and click Add Namespaces.
-
On the Step 1 - Add Namespaces tab, in the Add Namespaces section, unselect the onboarded namespaces. Alternatively, under SELECTED NAMESPACES, click x icon next to the onboarded namespaces.
-
Enter the text OFFBOARD to offboard the namespace from a slice workspace.
infoWhile the namespace offboarding is in progress, no operations on the slice workspace are allowed.
-
On the Step 2 - Generate YAML and APPLY tab, you will see offboarding namespace is in progress before it is completely offboarded.