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:

  1. Navigate to Shared Resources > Collections.

  2. Click View Children next to Swarm.

  3. Click Create Collection.

  4. Enter a collection name and click Create.

To move a resource to a different collection:

  1. 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.

  2. Click the node you want to move to display the information window for that node.

  3. Click the slider icon at the top right of the information window to display the edit dialog for the node.

  4. Scroll down to Labels and change the com.docker.ucp.access.label swarm label to the name of your collection.


    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:

  1. Navigate to Kubernetes > Namespaces and click Create.

  2. Leave the Namespace drop-down blank.

  3. Paste the following in the Object YAML editor:

    apiVersion: v1
    kind: Namespace
      name: namespace-name
  4. Click Create.


For more information on assigning resources to a particular namespace, refer to Kubernetes Documentation: Namespaces Walkthrough.

See also