diff --git a/ee/ucp/admin/configure/add-labels-to-cluster-nodes.md b/ee/ucp/admin/configure/add-labels-to-cluster-nodes.md index 036fb92565..22d2efe7ba 100644 --- a/ee/ucp/admin/configure/add-labels-to-cluster-nodes.md +++ b/ee/ucp/admin/configure/add-labels-to-cluster-nodes.md @@ -18,7 +18,7 @@ lifecycle, or the hardware resources they have. Don't create labels for authorization and permissions to resources. Instead, use resource sets, either UCP collections or Kubernetes namespaces, to organize access to your cluster. -[Learn about managing access with resource sets](../../authorization/group-resources.md). +[Learn about managing access with resource sets](../../authorization/group-resources.md). ## Apply labels to a node @@ -26,18 +26,20 @@ In this example we'll apply the `ssd` label to a node. Then we'll deploy a service with a deployment constraint to make sure the service is always scheduled to run on a node that has the `ssd` label. -Log in with administrator credentials in the UCP web UI, navigate to the -**Nodes** page, and choose the node you want to apply labels to. In the -details pane, click **Configure**. +1. Log in with administrator credentials in the UCP web interface. +2. Select **Nodes** in the left-hand navigation menu. +3. In the nodes list, select the node to which you want to apply labels. +4. In the details pane, select the edit node icon in the upper-right corner to edit the node. + ![](../../images/add-labels-to-cluster-nodes-3.png) -In the **Edit Node** page, scroll down to the **Labels** section. - -Click **Add Label**, and add a label with the key `disk` and a value of `ssd`. +5. In the **Edit Node** page, scroll down to the **Labels** section. +6. Select **Add Label**. +7. Add a label with the key `disk` and a value of `ssd`. ![](../../images/add-labels-to-cluster-nodes-2.png){: .with-border} -Click **Save** and dismiss the **Edit Node** page. In the node's details -pane, click **Labels** to view the labels that are applied to the node. +8. Click **Save** then dismiss the **Edit Node** page. +9. In the node's details pane, select **Labels** to view the labels that are applied to the node. You can also do this from the CLI by running: @@ -110,13 +112,13 @@ click **Done**. Navigate to the **Nodes** page, and click the node that has the `disk` label. In the details pane, click the **Inspect Resource** -dropdown and select **Containers**. +dropdown and select **Containers**. ![](../../images/use-constraints-in-stack-deployment-2.png) Dismiss the filter and navigate to the **Nodes** page. Click a node that doesn't have the `disk` label. In the details pane, click the -**Inspect Resource** dropdown and select **Containers**. There are no +**Inspect Resource** dropdown and select **Containers**. There are no WordPress containers scheduled on the node. Dismiss the filter. ## Add a constraint to a service by using the UCP web UI @@ -125,13 +127,13 @@ You can declare the deployment constraints in your docker-compose.yml file or when you're creating a stack. Also, you can apply them when you're creating a service. -To check if a service has deployment constraints, navigate to the +To check if a service has deployment constraints, navigate to the **Services** page and choose the service that you want to check. In the details pane, click **Constraints** to list the constraint labels. To edit the constraints on the service, click **Configure** and select **Details** to open the **Update Service** page. Click **Scheduling** to -view the constraints. +view the constraints. ![](../../images/add-constraint-to-service.png) @@ -140,5 +142,3 @@ You can add or remove deployment constraints on this page. ## Where to go next - [Store logs in an external system](store-logs-in-an-external-system.md) - - diff --git a/ee/ucp/images/add-labels-to-cluster-nodes-2.png b/ee/ucp/images/add-labels-to-cluster-nodes-2.png index 1cffa9c320..db2951844c 100644 Binary files a/ee/ucp/images/add-labels-to-cluster-nodes-2.png and b/ee/ucp/images/add-labels-to-cluster-nodes-2.png differ diff --git a/ee/ucp/images/add-labels-to-cluster-nodes-3.png b/ee/ucp/images/add-labels-to-cluster-nodes-3.png new file mode 100644 index 0000000000..696cd0aa54 Binary files /dev/null and b/ee/ucp/images/add-labels-to-cluster-nodes-3.png differ