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 add a resource to the collection:
Navigate to the resource you want to add to the collection. For example, click Shared Resources > Nodes and then click the node you want to add.
Click the gear icon in the top right to edit the resource.
Scroll down to Labels and enter the name of the collection you want to add the resource to, for example,
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
For more information on assigning resources to a particular namespace, refer to Kubernetes Documentation: Namespaces Walkthrough.