Group and isolate cluster resources¶
This topic describes how to group and isolate cluster resources into swarm collections and Kubernetes namespaces.
Log in to the MKE web UI as an administrator and complete the following steps:
To create a Swarm collection:
Navigate to Shared Resources > Collections.
Click View Children next to Swarm.
Click Create Collection.
Enter a collection name and click Create.
To move a resource to a different collection:
In the left-side navigation panel, navigate to the resource type you want to move and click it. As an example, navigate to and click on Shared Resources > Nodes.
Click the node you want to move to display the information window for that node.
Click the slider icon at the top right of the information window to display the edit dialog for the node.
Scroll down to Labels and change the
com.docker.ucp.access.label
swarm label to the name of your collection.Note
Optionally, you can navigate to Collection in the left-side navigation panel and select the collection to which you want to move the resource.
To create a Kubernetes namespace:
Navigate to Kubernetes > Namespaces and click Create.
Leave the Namespace drop-down blank.
Paste the following in the Object YAML editor:
apiVersion: v1 kind: Namespace metadata: name: namespace-name
Click Create.
Note
For more information on assigning resources to a particular namespace, refer to Kubernetes Documentation: Namespaces Walkthrough.
See also